From 43cff79bf70aa227f99b5f381b9a39465567c092 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 21 Jun 2015 10:50:29 -0300 Subject: detail --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 600ca331..3c6b62d3 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.143 2015/03/06 19:09:08 roberto Exp roberto $ +** $Id: liolib.c,v 2.144 2015/04/03 18:41:57 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -483,7 +483,7 @@ static void read_all (lua_State *L, FILE *f) { luaL_Buffer b; luaL_buffinit(L, &b); do { /* read file in chunks of LUAL_BUFFERSIZE bytes */ - char *p = luaL_prepbuffsize(&b, LUAL_BUFFERSIZE); + char *p = luaL_prepbuffer(&b); nr = fread(p, sizeof(char), LUAL_BUFFERSIZE, f); luaL_addsize(&b, nr); } while (nr == LUAL_BUFFERSIZE); -- cgit v1.2.3-55-g6feb