aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2018-05-06 20:32:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-14 09:42:27 +0200
commiteb49683e5591900b0c79fd9649a5aaf5549ea61f (patch)
treeb015e5222e63c65ab6231c40965f04f816d422ae /lib/url.c
parent4062bc4d3e717a490292500025e842e4d0f90ff1 (diff)
lib: Fix format specifiers
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 38f08b3c6..701f83ab3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3419,7 +3419,7 @@ static CURLcode parse_remote_port(struct Curl_easy *data,
* stripped off. It would be better to work directly from the original
* URL and simply replace the port part of it.
*/
- url = aprintf("%s://%s%s%s:%hu%s%s%s", conn->given->scheme,
+ url = aprintf("%s://%s%s%s:%d%s%s%s", conn->given->scheme,
conn->bits.ipv6_ip?"[":"", conn->host.name,
conn->bits.ipv6_ip?"]":"", conn->remote_port,
data->state.slash_removed?"/":"", data->state.path,