summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-10-01 18:39:47 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-10-01 18:39:47 +0200
commiteba428f6672068d819d6296db3f635e6ac5a8be7 (patch)
tree879f24b683ad5d18ffc093c4c3191696892989ee /syslog.c
parentb5e17105b163442a030559b7b2c2454b82b3fd4c (diff)
downloadunitd-eba428f6672068d819d6296db3f635e6ac5a8be7.tar
unitd-eba428f6672068d819d6296db3f635e6ac5a8be7.zip
syslog: fix incorrect use of sizeof() in vsnprintf()
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c2
1 files changed, 1 insertions, 1 deletions
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;