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 425c31ac..6f2fa287 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.43 2002/08/07 00:36:03 lhf Exp $ 2** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 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,char); 102 char* s=luaO_openspace(S->L,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 }