X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp-ls.c;h=58d652aed386e27db04c536a0adb83722e03b2e2;hp=b36221890674f6168ccbee63b984d218c97b9640;hb=61bb00adc0a2da373646e5cf8cef1ac980a3337f;hpb=8a0e9e765e42b9ab4fbab5a145a19f1069242858 diff --git a/src/ftp-ls.c b/src/ftp-ls.c index b3622189..58d652ae 100644 --- a/src/ftp-ls.c +++ b/src/ftp-ls.c @@ -815,8 +815,8 @@ ftp_index (const char *file, struct urlinfo *u, struct fileinfo *f) { char *tmpu, *tmpp; /* temporary, clean user and passwd */ - tmpu = CLEANDUP (u->user); - tmpp = u->passwd ? CLEANDUP (u->passwd) : NULL; + tmpu = encode_string (u->user); + tmpp = u->passwd ? encode_string (u->passwd) : NULL; upwd = (char *)xmalloc (strlen (tmpu) + (tmpp ? (1 + strlen (tmpp)) : 0) + 2); sprintf (upwd, "%s%s%s@", tmpu, tmpp ? ":" : "", tmpp ? tmpp : "");