aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-19 10:03:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-19 10:03:53 -0300
commit565e6d74e1440b1500d0ba0d3757307de0a38b9e (patch)
treefb03ae16585a6288a8f2c95621f30058cd806e29 /lundump.c
parentf6bc7884be000a82809c8f973a81b2ea50760937 (diff)
downloadlua-565e6d74e1440b1500d0ba0d3757307de0a38b9e.tar.gz
lua-565e6d74e1440b1500d0ba0d3757307de0a38b9e.tar.bz2
lua-565e6d74e1440b1500d0ba0d3757307de0a38b9e.zip
state's buffer is used only for chars
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 }