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 c430c155..e23265dc 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.32 1999/03/04 21:17:26 roberto Exp roberto $ 2** $Id: liolib.c,v 1.33 1999/03/05 20:45:01 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*/
@@ -471,7 +471,7 @@ static void errorfb (void) {
471 char buffchunk[MAXSRC]; 471 char buffchunk[MAXSRC];
472 int linedefined; 472 int linedefined;
473 lua_funcinfo(func, &chunkname, &linedefined); 473 lua_funcinfo(func, &chunkname, &linedefined);
474 luaL_chunkid(buffchunk, chunkname, MAXSRC); 474 luaL_chunkid(buffchunk, chunkname, sizeof(buffchunk));
475 if (level == 2) strcat(buff, "Active Stack:\n"); 475 if (level == 2) strcat(buff, "Active Stack:\n");
476 strcat(buff, "\t"); 476 strcat(buff, "\t");
477 if (strlen(buff) > MAXMESSAGE-MESSAGESIZE) { 477 if (strlen(buff) > MAXMESSAGE-MESSAGESIZE) {