aboutsummaryrefslogtreecommitdiff
path: root/lapi.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 /lapi.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 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index a65cc510..2914d989 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ 2** $Id: lapi.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -389,7 +389,7 @@ void lua_settag (int tag)
389 (L->stack.top-1)->value.ts->u.d.tag = tag; 389 (L->stack.top-1)->value.ts->u.d.tag = tag;
390 break; 390 break;
391 default: 391 default:
392 luaL_verror("cannot change the tag of a %s", 392 luaL_verror("cannot change the tag of a %.20s",
393 luaO_typenames[-ttype((L->stack.top-1))]); 393 luaO_typenames[-ttype((L->stack.top-1))]);
394 } 394 }
395 L->stack.top--; 395 L->stack.top--;