aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-06-21 10:50:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-06-21 10:50:29 -0300
commit43cff79bf70aa227f99b5f381b9a39465567c092 (patch)
tree16730d03844d68740df95cb87545b40185770fe8 /liolib.c
parent95c314439342d3919b4ac8b6b84902d683cfee8d (diff)
downloadlua-43cff79bf70aa227f99b5f381b9a39465567c092.tar.gz
lua-43cff79bf70aa227f99b5f381b9a39465567c092.tar.bz2
lua-43cff79bf70aa227f99b5f381b9a39465567c092.zip
detail
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 600ca331..3c6b62d3 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.143 2015/03/06 19:09:08 roberto Exp roberto $ 2** $Id: liolib.c,v 2.144 2015/04/03 18:41:57 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -483,7 +483,7 @@ static void read_all (lua_State *L, FILE *f) {
483 luaL_Buffer b; 483 luaL_Buffer b;
484 luaL_buffinit(L, &b); 484 luaL_buffinit(L, &b);
485 do { /* read file in chunks of LUAL_BUFFERSIZE bytes */ 485 do { /* read file in chunks of LUAL_BUFFERSIZE bytes */
486 char *p = luaL_prepbuffsize(&b, LUAL_BUFFERSIZE); 486 char *p = luaL_prepbuffer(&b);
487 nr = fread(p, sizeof(char), LUAL_BUFFERSIZE, f); 487 nr = fread(p, sizeof(char), LUAL_BUFFERSIZE, f);
488 luaL_addsize(&b, nr); 488 luaL_addsize(&b, nr);
489 } while (nr == LUAL_BUFFERSIZE); 489 } while (nr == LUAL_BUFFERSIZE);