Update file.c

Buffer size of funtion readline is wrong  (Line 480)
Should be FILE_READ_CHUNK = 1024 bytes instead 256 bytes
This commit is contained in:
Carlos Bastos Filho 2017-12-19 15:32:23 -02:00 committed by GitHub
parent 3747d7cbe0
commit 442e3e2e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ static int file_readline( lua_State* L )
{
GET_FILE_OBJ;
return file_g_read(L, LUAL_BUFFERSIZE, '\n', fd);
return file_g_read(L, FILE_READ_CHUNK, '\n', fd);
}
// Lua: write("string")