]> sjero.net Git - wget/blobdiff - src/log.c
Automated merge.
[wget] / src / log.c
index cbdf59fbc61f06e132f4f27f235a662257b11926..9ee0621160ebca923233e94889ce72153a532049 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -56,7 +56,7 @@ as that of the covered work.  */
 # define FPUTS( s, f) fputs( (s), (f))
 #endif /* def __VMS [else] */
 
-/* This file impplement support for "logging".  Logging means printing
+/* This file implements support for "logging".  Logging means printing
    output, plus several additional features:
 
    - Cataloguing output by importance.  You can specify that a log
@@ -787,7 +787,7 @@ escnonprint_uri (const char *str)
 void
 log_cleanup (void)
 {
-  int i;
+  size_t i;
   for (i = 0; i < countof (ring); i++)
     xfree_null (ring[i].buffer);
 }
@@ -806,8 +806,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 ();