aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.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 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 4487802e..7f9c08f3 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.253 2002/08/20 20:03:05 roberto Exp roberto $ 2** $Id: lvm.c,v 1.254 2002/08/21 18:56:19 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*/
@@ -303,7 +303,7 @@ void luaV_concat (lua_State *L, int total, int last) {
303 n++; 303 n++;
304 } 304 }
305 if (tl > MAX_SIZET) luaG_runerror(L, "string size overflow"); 305 if (tl > MAX_SIZET) luaG_runerror(L, "string size overflow");
306 buffer = luaO_openspace(L, tl, char); 306 buffer = luaO_openspace(L, tl);
307 tl = 0; 307 tl = 0;
308 for (i=n; i>0; i--) { /* concat all strings */ 308 for (i=n; i>0; i--) { /* concat all strings */
309 size_t l = tsvalue(top-i)->tsv.len; 309 size_t l = tsvalue(top-i)->tsv.len;