Fix a possible stack corruption

This commit is contained in:
Steven Barth 2009-03-16 13:34:46 +00:00
parent e5a34b512c
commit 13767f5d1a

View file

@ -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));
}