fix printf-style format strings

This commit is contained in:
Yang Tse
2010-02-04 19:44:31 +00:00
parent f47b84b57f
commit 7aef172a34
15 changed files with 50 additions and 49 deletions

View File

@@ -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);