aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1995-03-17 17:27:11 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1995-03-17 17:27:11 -0300
commit3c67d2595bedb5d951d8bd62a55f1e24aa128202 (patch)
treefb43fb30b2d0394f554e855a86a00197ba597d5c
parent2043a0ca3032b809016dea0c50c90d8a3f4ee4dc (diff)
downloadlua-3c67d2595bedb5d951d8bd62a55f1e24aa128202.tar.gz
lua-3c67d2595bedb5d951d8bd62a55f1e24aa128202.tar.bz2
lua-3c67d2595bedb5d951d8bd62a55f1e24aa128202.zip
error message buffer got a bigger size
-rw-r--r--inout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index b2a50449..ac89a1b7 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.15 1994/12/16 15:55:04 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.16 1994/12/20 21:20:36 roberto Exp celes $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
@@ -71,8 +71,8 @@ char *lua_openfile (char *fn)
71 fp = fopen (fn, "r"); 71 fp = fopen (fn, "r");
72 if (fp == NULL) 72 if (fp == NULL)
73 { 73 {
74 static char buff[32]; 74 static char buff[255];
75 sprintf(buff, "unable to open file %.10s", fn); 75 sprintf(buff, "unable to open file %.230s", fn);
76 return buff; 76 return buff;
77 } 77 }
78 return lua_addfile (fn); 78 return lua_addfile (fn);