projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5e1710
)
syslog: fix incorrect use of sizeof() in vsnprintf()
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 1 Oct 2013 16:39:47 +0000
(16:39 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 1 Oct 2013 16:39:47 +0000
(16:39 +0000)
syslog.c
patch
|
blob
|
history
diff --git
a/syslog.c
b/syslog.c
index dbb7a5a57a996317fa8e05559f63bd52e5422e26..7a2839e813ba4b73797768a69f535d48f763bcb7 100644
(file)
--- 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;