]> andersk Git - moira.git/commitdiff
Prevent against format string attacks by adding third arg to syslog()
authorzacheiss <zacheiss>
Thu, 21 Sep 2000 07:35:57 +0000 (07:35 +0000)
committerzacheiss <zacheiss>
Thu, 21 Sep 2000 07:35:57 +0000 (07:35 +0000)
update/update_server.c

index af0cc526c66d32f6d86200e5228c8e4841f79504..f50fb525b1433dab9d3d0cc96970a15dd6bba544 100644 (file)
@@ -245,5 +245,5 @@ static void syslog_com_err_proc(const char *progname, long code,
   buf[bufsiz] = '\0';
 
   vsnprintf(buf, bufsiz, fmt, args);
-  syslog(LOG_NOTICE, buf);
+  syslog(LOG_NOTICE, "%s", buf);
 }
This page took 0.139925 seconds and 5 git commands to generate.