]> sjero.net Git - wget/commitdiff
[svn] Use the %d format to print port number, which is int.
authorhniksic <devnull@localhost>
Thu, 12 May 2005 16:24:33 +0000 (09:24 -0700)
committerhniksic <devnull@localhost>
Thu, 12 May 2005 16:24:33 +0000 (09:24 -0700)
src/ChangeLog
src/ftp-ls.c

index 73f91bbe20d28cfb4b2cae43601ebef0afedbd81..eeff74842b7db26ccd5ceab171260a71faf88544 100644 (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
index dd703dfd193d9e3773fd8745959028de9b2d8554..6f6eeac2a34101dc1a3bfee1b382325e993e1a6b 100644 (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);