aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 45dc6cb3..112a1fce 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.44 2003/07/07 13:32:52 roberto Exp roberto $ 2** $Id: liolib.c,v 2.45 2003/07/09 12:08:43 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -152,7 +152,7 @@ static int io_gc (lua_State *L) {
152 152
153 153
154static int io_tostring (lua_State *L) { 154static int io_tostring (lua_State *L) {
155 char buff[32]; 155 char buff[4*sizeof(void *) + 2]; /* enough space for a `%p' */
156 FILE **f = topfile(L, 1); 156 FILE **f = topfile(L, 1);
157 if (*f == NULL) 157 if (*f == NULL)
158 strcpy(buff, "closed"); 158 strcpy(buff, "closed");