diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.62 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.63 2001/02/23 17:28:12 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 | */ |
@@ -294,7 +294,7 @@ static int handle_argv (l_char *argv[], struct Options *opt) { | |||
294 | 294 | ||
295 | static void getstacksize (int argc, l_char *argv[], struct Options *opt) { | 295 | static void getstacksize (int argc, l_char *argv[], struct Options *opt) { |
296 | if (argc >= 2 && argv[1][0] == l_c('-') && argv[1][1] == l_c('s')) { | 296 | if (argc >= 2 && argv[1][0] == l_c('-') && argv[1][1] == l_c('s')) { |
297 | int stacksize = atoi(&argv[1][2]); | 297 | int stacksize = strtol(&argv[1][2], NULL, 10); |
298 | if (stacksize <= 0) { | 298 | if (stacksize <= 0) { |
299 | fprintf(stderr, l_s("lua: invalid stack size ('%.20s')\n"), &argv[1][2]); | 299 | fprintf(stderr, l_s("lua: invalid stack size ('%.20s')\n"), &argv[1][2]); |
300 | exit(EXIT_FAILURE); | 300 | exit(EXIT_FAILURE); |