1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

Fix format string bugs in mod_lua. Found by gcc and pointed out by Igor Galic.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2011-10-08 07:50:06 +00:00
parent 03227ed1c4
commit 45cbf99b00
2 changed files with 4 additions and 2 deletions

View File

@@ -399,7 +399,8 @@ static int req_log_at(lua_State *L, int level)
lua_getinfo(L, "Sl", &dbg);
msg = luaL_checkstring(L, 2);
ap_log_rerror(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0, r, msg);
ap_log_rerror(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0,
r, "%s", msg);
return 0;
}