summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nixio/src/syslog.c')
-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));
}