Fix a possible stack corruption
This commit is contained in:
parent
e5a34b512c
commit
13767f5d1a
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue