summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2018-09-16 22:04:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-01-04 23:50:48 +0100
commitfa2d6ba84d7f87148738f3cbccf29016dd324f87 (patch)
tree7015e5aa21deac71011e72d36322dfbfc38423a2 /lib/url.c
parentc7c362a24c0247644f9fde05e8ea353af4a94b04 (diff)
downloadcurl-fa2d6ba84d7f87148738f3cbccf29016dd324f87.tar.gz
printf: fix format specifiers
Closes #3426
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index a95075c92..d6d5f8c5c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -2996,7 +2996,7 @@ static CURLcode parse_remote_port(struct Curl_easy *data,
char portbuf[16];
CURLUcode uc;
conn->remote_port = (unsigned short)data->set.use_port;
- msnprintf(portbuf, sizeof(portbuf), "%u", conn->remote_port);
+ msnprintf(portbuf, sizeof(portbuf), "%d", conn->remote_port);
uc = curl_url_set(data->state.uh, CURLUPART_PORT, portbuf, 0);
if(uc)
return CURLE_OUT_OF_MEMORY;