diff options
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |