summaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-27 19:38:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-27 19:38:49 -0300
commitef3c45d5230b08d87b53d67c04f34873c3d24933 (patch)
treea8b76b4bd5ea8aade1c0eec1bf017ce91d863b0b /inout.c
parent20a48a818f4084f1b6480e3ec846c219abaafd5b (diff)
downloadlua-3.0.tar.gz
lua-3.0.tar.bz2
lua-3.0.zip
for security reasons, one cannot change the tag of a udatav3.0
from Lua.
Diffstat (limited to 'inout.c')
-rw-r--r--inout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inout.c b/inout.c
index 574253cc..0b36c70e 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.67 1997/06/23 18:27:53 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.68 1997/06/26 20:47:43 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <string.h> 11#include <string.h>
@@ -313,7 +313,7 @@ static void luaI_call (void)
313static void luaIl_settag (void) 313static void luaIl_settag (void)
314{ 314{
315 lua_Object o = lua_getparam(1); 315 lua_Object o = lua_getparam(1);
316 luaL_arg_check(o != LUA_NOOBJECT, 1, NULL); 316 luaL_arg_check(lua_istable(o), 1, "table expected");
317 lua_pushobject(o); 317 lua_pushobject(o);
318 lua_settag(luaL_check_number(2)); 318 lua_settag(luaL_check_number(2));
319} 319}