diff options
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.29 2000/06/28 14:12:55 lhf Exp lhf $ | 2 | ** $Id: lundump.c,v 1.27 2000/09/04 18:53:41 roberto Exp roberto $ |
3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -86,7 +86,7 @@ static TString* LoadString (lua_State* L, ZIO* Z, int swap) | |||
86 | return NULL; | 86 | return NULL; |
87 | else | 87 | else |
88 | { | 88 | { |
89 | char* s=luaL_openspace(L,size); | 89 | char* s=luaO_openspace(L,size); |
90 | LoadBlock(L,s,size,Z); | 90 | LoadBlock(L,s,size,Z); |
91 | return luaS_newlstr(L,s,size-1); /* remove trailing '\0' */ | 91 | return luaS_newlstr(L,s,size-1); /* remove trailing '\0' */ |
92 | } | 92 | } |