aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
committerYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
commit7aef172a347a0422a0968fde9c487639ff673383 (patch)
tree56ffb38d50520aa2a62aefa24a592381ecec4193 /lib/url.c
parentf47b84b57ff74915820d26efc30459158bbe5c9c (diff)
fix printf-style format strings
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 34626e69a..8340e52c0 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4234,7 +4234,7 @@ static CURLcode parse_remote_port(struct SessionHandle *data,
* are 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:%d%s%s", conn->handler->scheme,
+ url = aprintf("%s://%s%s%s:%hu%s%s", conn->handler->scheme,
conn->bits.ipv6_ip?"[":"", conn->host.name,
conn->bits.ipv6_ip?"]":"", conn->remote_port,
isftp?"/":"", data->state.path);