diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.115 2002/05/14 17:52:22 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.116 2002/05/15 18:57:44 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -517,13 +517,13 @@ void luaG_runerror (lua_State *L, const char *fmt, ...) { | |||
517 | const char *msg; | 517 | const char *msg; |
518 | va_list argp; | 518 | va_list argp; |
519 | va_start(argp, fmt); | 519 | va_start(argp, fmt); |
520 | msg = luaO_vpushstr(L, fmt, argp); | 520 | msg = luaO_pushvfstring(L, fmt, argp); |
521 | va_end(argp); | 521 | va_end(argp); |
522 | if (isLmark(L->ci)) { | 522 | if (isLmark(L->ci)) { |
523 | char buff[LUA_IDSIZE]; | 523 | char buff[LUA_IDSIZE]; |
524 | int line = currentline(L, L->ci); | 524 | int line = currentline(L, L->ci); |
525 | luaO_chunkid(buff, getstr(getluaproto(L->ci)->source), LUA_IDSIZE); | 525 | luaO_chunkid(buff, getstr(getluaproto(L->ci)->source), LUA_IDSIZE); |
526 | msg = luaO_pushstr(L, "%s:%d: %s", buff, line, msg); | 526 | msg = luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); |
527 | } | 527 | } |
528 | luaD_error(L, msg, LUA_ERRRUN); | 528 | luaD_error(L, msg, LUA_ERRRUN); |
529 | } | 529 | } |