]> sjero.net Git - wget/blobdiff - src/ftp-ls.c
[svn] Use the %d format to print port number, which is int.
[wget] / src / ftp-ls.c
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);