[svn] Use the %d format to print port number, which is int.

This commit is contained in:
hniksic 2005-05-12 09:24:33 -07:00
parent a0d28d4d5c
commit 3d9eadee53
2 changed files with 7 additions and 1 deletions

View File

@ -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>
* url.c (rewrite_shorthand_url): Don't rewrite "https://host" to

View File

@ -926,7 +926,7 @@ ftp_index (const char *file, struct url *u, struct fileinfo *f)
break;
}
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 != '/')
putc ('/', fp);
fprintf (fp, "%s", u->dir);