]> sjero.net Git - wget/blobdiff - src/log.c
Use Gnulib's alloc functions throughout the source.
[wget] / src / log.c
index 078a7ac9d9c8d00ba7ba8f32b0d4bb6d97fd2d16..077ebeb833847afe7b9cbcdca0bb0c1f2a7e2ce7 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -28,6 +28,8 @@ Corresponding Source for a non-source form of such a combination
 shall include the source code for the parts of OpenSSL used as well
 as that of the covered work.  */
 
+#define USE_GNULIB_ALLOC
+
 #include "wget.h"
 
 #include <stdio.h>
@@ -781,8 +783,8 @@ redirect_output (void)
   logfp = unique_create (DEFAULT_LOGFILE, false, &logfile);
   if (logfp)
     {
-      fprintf (stderr, _("\n%s received, redirecting output to `%s'.\n"),
-               redirect_request_signal_name, logfile);
+      fprintf (stderr, _("\n%s received, redirecting output to %s.\n"),
+               redirect_request_signal_name, quote (logfile));
       xfree (logfile);
       /* Dump the context output to the newly opened log.  */
       log_dump_context ();