aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 17:32:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 17:32:16 -0300
commitdfd7ce74cf040dba710657963db0144201823670 (patch)
tree72117e389dbb172a0cd464c1d74e917c3e106f47 /lvm.c
parent8399df5dcf40d078cc6b0fa4df640ef0fc49b5be (diff)
downloadlua-dfd7ce74cf040dba710657963db0144201823670.tar.gz
lua-dfd7ce74cf040dba710657963db0144201823670.tar.bz2
lua-dfd7ce74cf040dba710657963db0144201823670.zip
buffer should be void *, as char now is not that neutral...
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 620cc979..f707208d 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.171 2001/02/22 18:59:59 roberto Exp roberto $ 2** $Id: lvm.c,v 1.172 2001/02/23 17:17:25 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -281,7 +281,7 @@ void luaV_strconc (lua_State *L, int total, StkId top) {
281 n++; 281 n++;
282 } 282 }
283 if (tl > MAX_SIZET) luaD_error(L, l_s("string size overflow")); 283 if (tl > MAX_SIZET) luaD_error(L, l_s("string size overflow"));
284 buffer = luaO_openspace(L, tl); 284 buffer = luaO_openspace(L, tl, l_char);
285 tl = 0; 285 tl = 0;
286 for (i=n; i>0; i--) { /* concat all strings */ 286 for (i=n; i>0; i--) { /* concat all strings */
287 size_t l = tsvalue(top-i)->len; 287 size_t l = tsvalue(top-i)->len;