From 565e6d74e1440b1500d0ba0d3757307de0a38b9e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Sep 2002 10:03:53 -0300 Subject: state's buffer is used only for chars --- lundump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 425c31ac..6f2fa287 100644 --- a/lundump.c +++ b/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 1.43 2002/08/07 00:36:03 lhf Exp $ +** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 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); + char* s=luaO_openspace(S->L,size); ezread(S,s,size); return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ } -- cgit v1.2.3-55-g6feb