From eba428f6672068d819d6296db3f635e6ac5a8be7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 1 Oct 2013 16:39:47 +0000 Subject: [PATCH] syslog: fix incorrect use of sizeof() in vsnprintf() --- syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syslog.c b/syslog.c index dbb7a5a..7a2839e 100644 --- a/syslog.c +++ b/syslog.c @@ -142,7 +142,7 @@ void log_printf(char *fmt, ...) if (!buffer) return; va_start(ap, fmt); - n = vsnprintf(buffer, sizeof(buffer), fmt, ap); + n = vsnprintf(buffer, buffer_len, fmt, ap); va_end(ap); if (n < 1) return; -- 2.25.1