projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a34b5
)
Fix a possible stack corruption
author
Steven Barth
<steven@midlink.org>
Mon, 16 Mar 2009 13:34:46 +0000
(13:34 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 16 Mar 2009 13:34:46 +0000
(13:34 +0000)
libs/nixio/src/syslog.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/syslog.c
b/libs/nixio/src/syslog.c
index 081e8369ff8ee393f948d5392a449a8c1b5d6ebe..b3d87e2061bc19db5489a1f278e7628920c2a185 100644
(file)
--- a/
libs/nixio/src/syslog.c
+++ b/
libs/nixio/src/syslog.c
@@
-82,7
+82,7
@@
static int nixio__syslogmasg(lua_State *L, int dolog) {
if (dolog) {
const char *msg = luaL_checkstring(L, 2);
- syslog(priority, msg);
+ syslog(priority,
"%s",
msg);
} else {
setlogmask(LOG_UPTO(priority));
}