# HG changeset patch # User Myhailo Danylenko # Date 1349968270 -10800 # Node ID 0e407455faca5bf306f3469592d9cecdf6436900 # Parent d7ab555b9766f1a699a6900ec15300cce39455d2 Fix print () to not segfault on format expressions diff -r d7ab555b9766 -r 0e407455faca lua.c --- a/lua.c Tue Aug 21 16:23:23 2012 +0300 +++ b/lua.c Thu Oct 11 18:11:10 2012 +0300 @@ -151,7 +151,7 @@ } luaL_pushresult (&B); - scr_log_print (LPRINT_LOGNORM | LPRINT_NOTUTF8, lua_tostring (L, -1)); + scr_log_print (LPRINT_LOGNORM | LPRINT_NOTUTF8, "%s", lua_tostring (L, -1)); return 0; }