From 13767f5d1a92be7c86946f9cd44f772ac2d2091b Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 16 Mar 2009 13:34:46 +0000 Subject: [PATCH] Fix a possible stack corruption --- libs/nixio/src/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/nixio/src/syslog.c b/libs/nixio/src/syslog.c index 081e8369ff..b3d87e2061 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)); } -- 2.30.2