summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-16 13:34:46 +0000
committerSteven Barth <steven@midlink.org>2009-03-16 13:34:46 +0000
commit13767f5d1a92be7c86946f9cd44f772ac2d2091b (patch)
treeadf63fddf22fcfa5f0c92eb9cce1de9a192ebf0f /libs/nixio
parente5a34b512cfe24fbc43828208713405a7236de11 (diff)
Fix a possible stack corruption
Diffstat (limited to 'libs/nixio')
-rw-r--r--libs/nixio/src/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/syslog.c b/libs/nixio/src/syslog.c
index 081e8369f..b3d87e206 100644
--- 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));
}