diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-19 16:16:33 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-19 16:16:33 -0200 |
| commit | 6153200bc25bd99f9d3d25d7caa486b03b6535d5 (patch) | |
| tree | 67de753105b00fb99bd561a9dde415257b2f7abe /ltm.c | |
| parent | 2e7595522db676e77ee057f091dcc10a0f3d885f (diff) | |
| download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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; |
