summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-21 13:50:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-21 13:50:24 +0000
commitfc1e5cbe4d1411b56a0f995a9cae9e17e2da3447 (patch)
treed846d4ff5e941bfd137dda1617ef0d8f370c2126 /libs
parent05da6913ddb76674200e4c935bd37b8970c41ca7 (diff)
libs/lucittpd: fix format strings in luaplugin.c and log.c
Diffstat (limited to 'libs')
-rw-r--r--libs/lucittpd/src/lib/log.c4
-rw-r--r--libs/lucittpd/src/lib/luaplugin.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/lucittpd/src/lib/log.c b/libs/lucittpd/src/lib/log.c
index b6ce8c28e6..001bad473d 100644
--- a/libs/lucittpd/src/lib/log.c
+++ b/libs/lucittpd/src/lib/log.c
@@ -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);
}
diff --git a/libs/lucittpd/src/lib/luaplugin.c b/libs/lucittpd/src/lib/luaplugin.c
index 6a0e1caad7..0b2e33122b 100644
--- a/libs/lucittpd/src/lib/luaplugin.c
+++ b/libs/lucittpd/src/lib/luaplugin.c
@@ -215,7 +215,7 @@ load_module(struct luaplugin_ctx *ctx, struct luaplugin_entry *e)
if (lua_isstring(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);
if (ret != 0) {
- fprintf(stderr, lua_tostring(L, -1));
+ fprintf(stderr, "%s", lua_tostring(L, -1));
}
done: