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
ltm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.c,v 1.7 1997/11/10 17:47:01 roberto Exp roberto $
** $Id: ltm.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -131,7 +131,7 @@ void luaT_settagmethod (int t, char *event, TObject *func)
int e = luaI_checkevent(event, luaT_eventname);
checktag(t);
if (!validevent(t, e))
luaL_verror("settagmethod: cannot change internal method `%s' for tag %d",
luaL_verror("settagmethod: cannot change internal method `%.20s' for tag %d",
luaT_eventname[e], t);
*func = *luaT_getim(t,e);
*luaT_getim(t, e) = temp;