diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
| commit | ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch) | |
| tree | fc2ac2bea24400ec815be94ba916b41f6f8cd104 /lauxlib.c | |
| parent | 98194db4295726069137d13b8d24fca8cbf892b6 (diff) | |
| download | lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2 lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip | |
details
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.158 2006/01/16 12:42:21 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.159 2006/03/21 19:31:09 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 | */ |
| @@ -535,7 +535,7 @@ static const char *getF (lua_State *L, void *ud, size_t *size) { | |||
| 535 | return "\n"; | 535 | return "\n"; |
| 536 | } | 536 | } |
| 537 | if (feof(lf->f)) return NULL; | 537 | if (feof(lf->f)) return NULL; |
| 538 | *size = fread(lf->buff, 1, LUAL_BUFFERSIZE, lf->f); | 538 | *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); |
| 539 | return (*size > 0) ? lf->buff : NULL; | 539 | return (*size > 0) ? lf->buff : NULL; |
| 540 | } | 540 | } |
| 541 | 541 | ||
