make sure there is no mem problems, using %.ns instead of %s for luaV_error.

This commit is contained in:
Roberto Ierusalimschy
1997-11-19 16:16:33 -02:00
parent 2e7595522d
commit 6153200bc2
4 changed files with 8 additions and 8 deletions

4
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $
** $Id: lapi.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -389,7 +389,7 @@ void lua_settag (int tag)
(L->stack.top-1)->value.ts->u.d.tag = tag;
break;
default:
luaL_verror("cannot change the tag of a %s",
luaL_verror("cannot change the tag of a %.20s",
luaO_typenames[-ttype((L->stack.top-1))]);
}
L->stack.top--;