state's buffer is used only for chars

This commit is contained in:
Roberto Ierusalimschy
2002-09-19 10:03:53 -03:00
parent f6bc7884be
commit 565e6d74e1
6 changed files with 13 additions and 14 deletions

View File

@@ -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' */
}