]> sjero.net Git - wget/commitdiff
Use Gnulib's quote function in connect.c.
authorSteven Schubiger <schubiger@gmail.com>
Wed, 16 Apr 2008 09:45:14 +0000 (11:45 +0200)
committerSteven Schubiger <schubiger@gmail.com>
Wed, 16 Apr 2008 09:45:14 +0000 (11:45 +0200)
src/ChangeLog
src/connect.c

index a4ce89cdb769b367ed0303a34a3442072ae063b4..c99218f66c743836d9f7a446c930358a6ad1c662 100644 (file)
@@ -2,6 +2,7 @@
 
        * ftp.c: Use Gnulib's quote function for printing filenames and
        such.
+       * connect.c: Likewise.
 
 2008-04-16  Steven Schubiger  <schubiger@gmail.com>
 
index 2be764d41c2356f0302eafd41fadd8153c386ceb..2626ef3208dee2fe7054ba61db79b8d743370327 100644 (file)
@@ -195,8 +195,8 @@ resolve_bind_address (struct sockaddr *sa)
     {
       /* #### We should be able to print the error message here. */
       logprintf (LOG_NOTQUIET,
-                 _("%s: unable to resolve bind address `%s'; disabling bind.\n"),
-                 exec_name, opt.bind_address);
+                 _("%s: unable to resolve bind address %s; disabling bind.\n"),
+                 exec_name, quote (opt.bind_address));
       should_bind = false;
       return false;
     }
@@ -366,8 +366,8 @@ connect_to_host (const char *host, int port)
   if (!al)
     {
       logprintf (LOG_NOTQUIET,
-                 _("%s: unable to resolve host address `%s'\n"),
-                 exec_name, host);
+                 _("%s: unable to resolve host address %s\n"),
+                 exec_name, quote (host));
       return E_HOST;
     }