summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
commit6153200bc25bd99f9d3d25d7caa486b03b6535d5 (patch)
tree67de753105b00fb99bd561a9dde415257b2f7abe /ltm.c
parent2e7595522db676e77ee057f091dcc10a0f3d885f (diff)
downloadlua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.gz
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.bz2
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.zip
make sure there is no mem problems, using %.ns instead of %s for luaV_error.
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.c b/ltm.c
index e19aab54..49ecfc01 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.7 1997/11/10 17:47:01 roberto Exp roberto $ 2** $Id: ltm.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -131,7 +131,7 @@ void luaT_settagmethod (int t, char *event, TObject *func)
131 int e = luaI_checkevent(event, luaT_eventname); 131 int e = luaI_checkevent(event, luaT_eventname);
132 checktag(t); 132 checktag(t);
133 if (!validevent(t, e)) 133 if (!validevent(t, e))
134 luaL_verror("settagmethod: cannot change internal method `%s' for tag %d", 134 luaL_verror("settagmethod: cannot change internal method `%.20s' for tag %d",
135 luaT_eventname[e], t); 135 luaT_eventname[e], t);
136 *func = *luaT_getim(t,e); 136 *func = *luaT_getim(t,e);
137 *luaT_getim(t, e) = temp; 137 *luaT_getim(t, e) = temp;