diff options
-rw-r--r-- | lbuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuffer.c,v 1.6 1999/02/25 15:17:01 roberto Exp roberto $ | 2 | ** $Id: lbuffer.c,v 1.7 1999/02/25 19:13:56 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -24,7 +24,8 @@ | |||
24 | 24 | ||
25 | static void Openspace (int size) { | 25 | static void Openspace (int size) { |
26 | lua_State *l = L; /* to optimize */ | 26 | lua_State *l = L; /* to optimize */ |
27 | l->Mbuffsize = l->Mbuffnext+size+EXTRABUFF; | 27 | size += EXTRABUFF; |
28 | l->Mbuffsize = l->Mbuffnext+size; | ||
28 | l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, | 29 | l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, |
29 | memEM, MAX_INT); | 30 | memEM, MAX_INT); |
30 | } | 31 | } |