From: Steven Barth Date: Mon, 16 Mar 2009 13:34:46 +0000 (+0000) Subject: Fix a possible stack corruption X-Git-Tag: 0.9.0~592 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=13767f5d1a92be7c86946f9cd44f772ac2d2091b;p=project%2Fluci.git Fix a possible stack corruption --- 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)); }