X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Furl.c;h=f2953c40c778aefa35e18323014e383eae9c5e47;hp=ecf94417574d71ecfb99cacb1fc915488030a78e;hb=943f657aa7e04240c3262c99ecb0f3bca23457a3;hpb=997a87548c84008744f503c987ba4a3ef10351af diff --git a/src/url.c b/src/url.c index ecf94417..f2953c40 100644 --- a/src/url.c +++ b/src/url.c @@ -1206,7 +1206,7 @@ mkstruct (const struct url *u) { int len = strlen (dirpref); dirpref[len] = ':'; - long_to_string (dirpref + len + 1, u->port); + number_to_string (dirpref + len + 1, u->port); } } else /* not add_hostdir */ @@ -1654,8 +1654,7 @@ url_string (const struct url *url, int hide_password) if (url->port != scheme_port) { *p++ = ':'; - long_to_string (p, url->port); - p += strlen (p); + p = number_to_string (p, url->port); } full_path_write (url, p);