From df882fb34ee34b36d15b203cf928b2f91a971cd6 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Thu, 21 Sep 2000 07:35:57 +0000 Subject: [PATCH] Prevent against format string attacks by adding third arg to syslog() --- update/update_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/update_server.c b/update/update_server.c index af0cc526..f50fb525 100644 --- a/update/update_server.c +++ b/update/update_server.c @@ -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); } -- 2.45.2