aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua.c b/lua.c
index 1bd9a4bc..47d69ecc 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.53 2000/10/09 15:46:43 roberto Exp roberto $ 2** $Id: lua.c,v 1.54 2000/10/17 13:36:24 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*/
@@ -115,7 +115,7 @@ static void print_message (void) {
115 115
116 116
117static void print_version (void) { 117static void print_version (void) {
118 printf("%s %s\n", LUA_VERSION, LUA_COPYRIGHT); 118 printf("%.80s %.80s\n", LUA_VERSION, LUA_COPYRIGHT);
119} 119}
120 120
121 121
@@ -255,7 +255,7 @@ static int handle_argv (char *argv[], struct Options *opt) {
255 return EXIT_FAILURE; 255 return EXIT_FAILURE;
256 } 256 }
257 if (ldo(lua_dostring, argv[i]) != 0) { 257 if (ldo(lua_dostring, argv[i]) != 0) {
258 fprintf(stderr, "lua: error running argument `%s'\n", argv[i]); 258 fprintf(stderr, "lua: error running argument `%.99s'\n", argv[i]);
259 return EXIT_FAILURE; 259 return EXIT_FAILURE;
260 } 260 }
261 break; 261 break;
@@ -289,7 +289,7 @@ static void getstacksize (int argc, char *argv[], struct Options *opt) {
289 if (argc >= 2 && argv[1][0] == '-' && argv[1][1] == 's') { 289 if (argc >= 2 && argv[1][0] == '-' && argv[1][1] == 's') {
290 int stacksize = atoi(&argv[1][2]); 290 int stacksize = atoi(&argv[1][2]);
291 if (stacksize <= 0) { 291 if (stacksize <= 0) {
292 fprintf(stderr, "lua: invalid stack size ('%s')\n", &argv[1][2]); 292 fprintf(stderr, "lua: invalid stack size ('%.20s')\n", &argv[1][2]);
293 exit(EXIT_FAILURE); 293 exit(EXIT_FAILURE);
294 } 294 }
295 opt->stacksize = stacksize; 295 opt->stacksize = stacksize;