Unverified Commit 442e3e2e authored by Carlos Bastos Filho's avatar Carlos Bastos Filho Committed by GitHub
Browse files

Update file.c

Buffer size of funtion readline is wrong  (Line 480)
Should be FILE_READ_CHUNK = 1024 bytes instead 256 bytes
parent 3747d7cb
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment