mirror of
https://github.com/mirror/wget.git
synced 2025-01-07 19:00:30 +08:00
[svn] Use the %d format to print port number, which is int.
This commit is contained in:
parent
a0d28d4d5c
commit
3d9eadee53
@ -1,3 +1,9 @@
|
|||||||
|
2005-05-12 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* ftp-ls.c (ftp_index): Use %d to print the port number, which is
|
||||||
|
now int.
|
||||||
|
From Steven M. Schweda's VMS patches.
|
||||||
|
|
||||||
2005-05-12 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-05-12 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* url.c (rewrite_shorthand_url): Don't rewrite "https://host" to
|
* url.c (rewrite_shorthand_url): Don't rewrite "https://host" to
|
||||||
|
@ -926,7 +926,7 @@ ftp_index (const char *file, struct url *u, struct fileinfo *f)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
htclfile = html_quote_string (f->name);
|
htclfile = html_quote_string (f->name);
|
||||||
fprintf (fp, "<a href=\"ftp://%s%s:%hu", upwd, u->host, u->port);
|
fprintf (fp, "<a href=\"ftp://%s%s:%d", upwd, u->host, u->port);
|
||||||
if (*u->dir != '/')
|
if (*u->dir != '/')
|
||||||
putc ('/', fp);
|
putc ('/', fp);
|
||||||
fprintf (fp, "%s", u->dir);
|
fprintf (fp, "%s", u->dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user