webmcp

changeset 420:4ae9850d6954

Fixed invalid key to next bug
author jbe
date Tue Jan 12 18:39:32 2016 +0100 (2016-01-12)
parents 8b8ebcb87034
children c343ce9092ee
files libraries/mondelefant/mondelefant_native.c
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.c	Tue Jan 12 18:23:40 2016 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_native.c	Tue Jan 12 18:39:32 2016 +0100
     1.3 @@ -229,7 +229,7 @@
     1.4        while (lua_pushvalue(L, 2), lua_next(L, 1)) {
     1.5          luaL_argcheck(L, lua_isstring(L, -2), 1, "key in table is not a string");
     1.6          luaL_argcheck(L, lua_isstring(L, -1), 1, "value in table is not a string");
     1.7 -        value = lua_tolstring(L, -1, &value_len);
     1.8 +        value = luaL_tolstring(L, -1, &value_len);
     1.9          lua_replace(L, 3);
    1.10          lua_pop(L, 1);
    1.11          lua_replace(L, 2);
    1.12 @@ -251,7 +251,7 @@
    1.13        }
    1.14        luaL_pushresult(&buf);
    1.15      }
    1.16 -    // ensure that string is on stack position 1 which is the top of stack:
    1.17 +    // ensure that string is on stack position 1:
    1.18      lua_replace(L, 1);
    1.19    }
    1.20    // use conninfo string on stack position 1:

Impressum / About Us