libwrap: Fix two -Wformat-security warnings.
authorSascha Wildner <saw@online.de>
Mon, 6 Jan 2014 23:49:02 +0000 (00:49 +0100)
committerSascha Wildner <saw@online.de>
Mon, 6 Jan 2014 23:49:02 +0000 (00:49 +0100)
contrib/tcp_wrappers/options.c
contrib/tcp_wrappers/shell_cmd.c

index 9391e30..f7bd5bf 100644 (file)
@@ -396,7 +396,7 @@ struct request_info *request;
 
        /* Something went wrong: we MUST terminate the process. */
 
-       tcpd_warn(error);
+       tcpd_warn("%s", error);
        clean_exit(request);
     }
 }
index 1fd58e6..159af3b 100644 (file)
@@ -86,6 +86,6 @@ char   *command;
 
     /* Something went wrong. We MUST terminate the child process. */
 
-    tcpd_warn(error);
+    tcpd_warn("%s", error);
     _exit(0);
 }