diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-05-06 20:32:24 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 09:42:27 +0200 |
commit | eb49683e5591900b0c79fd9649a5aaf5549ea61f (patch) | |
tree | b015e5222e63c65ab6231c40965f04f816d422ae /lib/http_proxy.c | |
parent | 4062bc4d3e717a490292500025e842e4d0f90ff1 (diff) | |
download | curl-eb49683e5591900b0c79fd9649a5aaf5549ea61f.tar.gz |
lib: Fix format specifiers
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r-- | lib/http_proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c index c1eb177dd..e10a48829 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -221,7 +221,7 @@ static CURLcode CONNECT(struct connectdata *conn, if(!req_buffer) return CURLE_OUT_OF_MEMORY; - host_port = aprintf("%s:%hu", hostname, remote_port); + host_port = aprintf("%s:%d", hostname, remote_port); if(!host_port) { Curl_add_buffer_free(req_buffer); return CURLE_OUT_OF_MEMORY; @@ -245,7 +245,7 @@ static CURLcode CONNECT(struct connectdata *conn, if(hostname != conn->host.name) ipv6_ip = (strchr(hostname, ':') != NULL); hostheader = /* host:port with IPv6 support */ - aprintf("%s%s%s:%hu", ipv6_ip?"[":"", hostname, ipv6_ip?"]":"", + aprintf("%s%s%s:%d", ipv6_ip?"[":"", hostname, ipv6_ip?"]":"", remote_port); if(!hostheader) { Curl_add_buffer_free(req_buffer); |