summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/liolib.c b/liolib.c
index 4c0cbf2b..0a310de0 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.72 2000/08/28 17:57:04 roberto Exp roberto $ 2** $Id: liolib.c,v 1.73 2000/08/29 14:33:31 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -372,6 +372,7 @@ static int io_read (lua_State *L) {
372 firstarg = lastarg = 1; /* correct indices */ 372 firstarg = lastarg = 1; /* correct indices */
373 lua_pushstring(L, "*l"); /* push default argument */ 373 lua_pushstring(L, "*l"); /* push default argument */
374 } 374 }
375 luaL_checkstack(L, lastarg-firstarg+1, "too many results");
375 for (n = firstarg; n<=lastarg; n++) { 376 for (n = firstarg; n<=lastarg; n++) {
376 size_t l; 377 size_t l;
377 int success; 378 int success;