# HG changeset patch # User jbe # Date 1452620372 -3600 # Node ID 4ae9850d695492b2bdf6e735173268f94852238c # Parent 8b8ebcb870342996d3110a48de830311347494e9 Fixed invalid key to next bug diff -r 8b8ebcb87034 -r 4ae9850d6954 libraries/mondelefant/mondelefant_native.c --- a/libraries/mondelefant/mondelefant_native.c Tue Jan 12 18:23:40 2016 +0100 +++ b/libraries/mondelefant/mondelefant_native.c Tue Jan 12 18:39:32 2016 +0100 @@ -229,7 +229,7 @@ while (lua_pushvalue(L, 2), lua_next(L, 1)) { luaL_argcheck(L, lua_isstring(L, -2), 1, "key in table is not a string"); luaL_argcheck(L, lua_isstring(L, -1), 1, "value in table is not a string"); - value = lua_tolstring(L, -1, &value_len); + value = luaL_tolstring(L, -1, &value_len); lua_replace(L, 3); lua_pop(L, 1); lua_replace(L, 2); @@ -251,7 +251,7 @@ } luaL_pushresult(&buf); } - // ensure that string is on stack position 1 which is the top of stack: + // ensure that string is on stack position 1: lua_replace(L, 1); } // use conninfo string on stack position 1: