diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-11 15:59:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-11 15:59:19 -0300 |
commit | 82ad0d57705dd3be41081118781762b72e334f1b (patch) | |
tree | 6913717d8034552944758a3275649550caeaadd0 /liolib.c | |
parent | 256d1bea08ca12890372c6c53fc191e7b90c5a8e (diff) | |
download | lua-82ad0d57705dd3be41081118781762b72e334f1b.tar.gz lua-82ad0d57705dd3be41081118781762b72e334f1b.tar.bz2 lua-82ad0d57705dd3be41081118781762b72e334f1b.zip |
details
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |