diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-01 18:39:47 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-01 18:39:47 +0200 |
commit | eba428f6672068d819d6296db3f635e6ac5a8be7 (patch) | |
tree | 879f24b683ad5d18ffc093c4c3191696892989ee | |
parent | b5e17105b163442a030559b7b2c2454b82b3fd4c (diff) | |
download | unitd-eba428f6672068d819d6296db3f635e6ac5a8be7.tar unitd-eba428f6672068d819d6296db3f635e6ac5a8be7.zip |
syslog: fix incorrect use of sizeof() in vsnprintf()
-rw-r--r-- | syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |