libs/lucittpd: fix format strings in luaplugin.c and log.c
This commit is contained in:
parent
05da6913dd
commit
fc1e5cbe4d
2 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ void log_printf(char *fmt, ...)
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
if(daemonize)
|
if(daemonize)
|
||||||
syslog(10, p);
|
syslog(10, "%s", p);
|
||||||
else
|
else
|
||||||
printf(p);
|
printf("%s", p);
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,7 +215,7 @@ load_module(struct luaplugin_ctx *ctx, struct luaplugin_entry *e)
|
||||||
if (lua_isstring(L, -1))
|
if (lua_isstring(L, -1))
|
||||||
err = lua_tostring(L, -1);
|
err = lua_tostring(L, -1);
|
||||||
|
|
||||||
fprintf(stderr, err);
|
fprintf(stderr, "%s", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ luaplugin_call(struct luaplugin_entry *e, int narg)
|
||||||
ret = lua_pcall(L, narg, 0, 0);
|
ret = lua_pcall(L, narg, 0, 0);
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
fprintf(stderr, lua_tostring(L, -1));
|
fprintf(stderr, "%s", lua_tostring(L, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Reference in a new issue