]> sjero.net Git - wget/blobdiff - src/main.c
Use the quote module for the password prompt.
[wget] / src / main.c
index 5fb91664ca65e63ec728550e7caa92c385248dc9..e239b6d009ff0aa71456ed150aacc7a69c585e0b 100644 (file)
@@ -56,7 +56,8 @@ as that of the covered work.  */
 #include "http.h"               /* for save_cookies */
 
 #include <getopt.h>
-#include "getpass.h"
+#include <getpass.h>
+#include <quote.h>
 
 #ifndef PATH_SEPARATOR
 # define PATH_SEPARATOR '/'
@@ -681,7 +682,7 @@ static char *
 prompt_for_password (void)
 {
   if (opt.user)
-    printf (_("Password for user \"%s\": "), opt.user);
+    printf (_("Password for user %s: "), quote (opt.user));
   else
     printf (_("Password: "));
   return getpass("");