libs/lucittpd: fix format strings in luaplugin.c and log.c
[project/luci.git] / libs / lucittpd / src / lib / log.c
index b6ce8c2..001bad4 100644 (file)
@@ -39,7 +39,7 @@ void log_printf(char *fmt, ...)
        va_end(ap);
 
        if(daemonize)
-               syslog(10, p);
+               syslog(10, "%s", p);
        else
-               printf(p);
+               printf("%s", p);
 }