use of different buffers for scanner and concatenation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 roberto Exp roberto $
|
||||
** $Id: lundump.c,v 1.53 2002/09/19 13:03:53 roberto Exp roberto $
|
||||
** load pre-compiled Lua chunks
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -99,7 +99,7 @@ static TString* LoadString (LoadState* S)
|
||||
return NULL;
|
||||
else
|
||||
{
|
||||
char* s=luaO_openspace(S->L,size);
|
||||
char* s=luaZ_openspace(S->L,&G(S->L)->buff,size);
|
||||
ezread(S,s,size);
|
||||
return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user