aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lundump.c b/lundump.c
index 6f2fa287..a555f97a 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 roberto Exp roberto $ 2** $Id: lundump.c,v 1.53 2002/09/19 13:03:53 roberto Exp roberto $
3** load pre-compiled Lua chunks 3** load pre-compiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -99,7 +99,7 @@ static TString* LoadString (LoadState* S)
99 return NULL; 99 return NULL;
100 else 100 else
101 { 101 {
102 char* s=luaO_openspace(S->L,size); 102 char* s=luaZ_openspace(S->L,&G(S->L)->buff,size);
103 ezread(S,s,size); 103 ezread(S,s,size);
104 return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ 104 return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */
105 } 105 }