From 53c7f861944c5189448b1e5ddafa6a23ee6936e2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 18 Nov 2003 08:44:53 -0200 Subject: [PATCH] details --- lzio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lzio.c b/lzio.c index 9ee65db6..b55a2f0a 100644 --- a/lzio.c +++ b/lzio.c @@ -1,5 +1,5 @@ /* -** $Id: lzio.c,v 1.26 2003/08/25 20:00:50 roberto Exp roberto $ +** $Id: lzio.c,v 1.27 2003/08/27 20:57:52 roberto Exp roberto $ ** a generic input stream interface ** See Copyright Notice in lua.h */ @@ -77,8 +77,7 @@ size_t luaZ_read (ZIO *z, void *b, size_t n) { char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { if (n > buff->buffsize) { if (n < LUA_MINBUFFER) n = LUA_MINBUFFER; - luaM_reallocvector(L, buff->buffer, buff->buffsize, n, char); - buff->buffsize = n; + luaZ_resizebuffer(L, buff, n); } return buff->buffer; }