diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -417,7 +417,7 @@ static int db_debug (lua_State *L) { | |||
417 | return 0; | 417 | return 0; |
418 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || | 418 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || |
419 | lua_pcall(L, 0, 0, 0)) | 419 | lua_pcall(L, 0, 0, 0)) |
420 | lua_writestringerror("%s\n", lua_tostring(L, -1)); | 420 | lua_writestringerror("%s\n", luaL_tolstring(L, -1, NULL)); |
421 | lua_settop(L, 0); /* remove eventual returns */ | 421 | lua_settop(L, 0); /* remove eventual returns */ |
422 | } | 422 | } |
423 | } | 423 | } |