]> sjero.net Git - wget/blobdiff - src/res.c
Use Gnulib's alloc functions throughout the source.
[wget] / src / res.c
index 0be3f7621f34afba367c3b94e1f5f41d854d35ce..94d9769ddabeb7d53f5878de71f4a8dc3ff1ebba 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -67,6 +67,8 @@ as that of the covered work.  */
    res_match_path, res_register_specs, res_get_specs, and
    res_retrieve_file.  */
 
+#define USE_GNULIB_ALLOC
+
 #include "wget.h"
 
 #include <stdio.h>
@@ -463,9 +465,9 @@ res_match_path (const struct robot_specs *specs, const char *path)
     if (matches (specs->paths[i].path, path))
       {
         bool allowedp = specs->paths[i].allowedp;
-        DEBUGP (("%s path %s because of rule `%s'.\n",
+        DEBUGP (("%s path %s because of rule %s.\n",
                  allowedp ? "Allowing" : "Rejecting",
-                 path, specs->paths[i].path));
+                 path, quote (specs->paths[i].path)));
         return allowedp;
       }
   return true;