error message buffer got a bigger size

This commit is contained in:
Waldemar Celes 1995-03-17 17:27:11 -03:00
parent 2043a0ca30
commit 3c67d2595b
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
** Also provides some predefined lua functions. ** Also provides some predefined lua functions.
*/ */
char *rcs_inout="$Id: inout.c,v 2.15 1994/12/16 15:55:04 roberto Exp roberto $"; char *rcs_inout="$Id: inout.c,v 2.16 1994/12/20 21:20:36 roberto Exp celes $";
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -71,8 +71,8 @@ char *lua_openfile (char *fn)
fp = fopen (fn, "r"); fp = fopen (fn, "r");
if (fp == NULL) if (fp == NULL)
{ {
static char buff[32]; static char buff[255];
sprintf(buff, "unable to open file %.10s", fn); sprintf(buff, "unable to open file %.230s", fn);
return buff; return buff;
} }
return lua_addfile (fn); return lua_addfile (fn);