summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index bfd380c4..8fd014d1 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.46 2000/08/28 17:57:04 roberto Exp roberto $ 2** $Id: lua.c,v 1.47 2000/08/29 14:33:31 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -286,7 +286,7 @@ static int handle_argv (char *argv[], struct Options *opt) {
286static void getstacksize (int argc, char *argv[], struct Options *opt) { 286static void getstacksize (int argc, char *argv[], struct Options *opt) {
287 if (argc >= 2 && argv[1][0] == '-' && argv[1][1] == 's') { 287 if (argc >= 2 && argv[1][0] == '-' && argv[1][1] == 's') {
288 int stacksize = atoi(&argv[1][2]); 288 int stacksize = atoi(&argv[1][2]);
289 if (stacksize == 0) { 289 if (stacksize <= 0) {
290 fprintf(stderr, "lua: invalid stack size ('%s')\n", &argv[1][2]); 290 fprintf(stderr, "lua: invalid stack size ('%s')\n", &argv[1][2]);
291 exit(EXIT_FAILURE); 291 exit(EXIT_FAILURE);
292 } 292 }