From ef3c45d5230b08d87b53d67c04f34873c3d24933 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 27 Jun 1997 19:38:49 -0300 Subject: for security reasons, one cannot change the tag of a udata from Lua. --- inout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inout.c') diff --git a/inout.c b/inout.c index 574253cc..0b36c70e 100644 --- a/inout.c +++ b/inout.c @@ -5,7 +5,7 @@ ** Also provides some predefined lua functions. */ -char *rcs_inout="$Id: inout.c,v 2.67 1997/06/23 18:27:53 roberto Exp roberto $"; +char *rcs_inout="$Id: inout.c,v 2.68 1997/06/26 20:47:43 roberto Exp roberto $"; #include #include @@ -313,7 +313,7 @@ static void luaI_call (void) static void luaIl_settag (void) { lua_Object o = lua_getparam(1); - luaL_arg_check(o != LUA_NOOBJECT, 1, NULL); + luaL_arg_check(lua_istable(o), 1, "table expected"); lua_pushobject(o); lua_settag(luaL_check_number(2)); } -- cgit v1.2.3-55-g6feb