From b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Oct 2002 15:46:08 -0300 Subject: use of different buffers for scanner and concatenation --- lundump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 6f2fa287..a555f97a 100644 --- a/lundump.c +++ b/lundump.c @@ -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' */ } -- cgit v1.2.3-55-g6feb