From 82ad0d57705dd3be41081118781762b72e334f1b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 11 Mar 1999 15:59:19 -0300 Subject: details --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index c430c155..e23265dc 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.32 1999/03/04 21:17:26 roberto Exp roberto $ +** $Id: liolib.c,v 1.33 1999/03/05 20:45:01 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -471,7 +471,7 @@ static void errorfb (void) { char buffchunk[MAXSRC]; int linedefined; lua_funcinfo(func, &chunkname, &linedefined); - luaL_chunkid(buffchunk, chunkname, MAXSRC); + luaL_chunkid(buffchunk, chunkname, sizeof(buffchunk)); if (level == 2) strcat(buff, "Active Stack:\n"); strcat(buff, "\t"); if (strlen(buff) > MAXMESSAGE-MESSAGESIZE) { -- cgit v1.2.3-55-g6feb