From 442e3e2e6c47449bb1cc603ef1b99c8a7fa17c2b Mon Sep 17 00:00:00 2001 From: Carlos Bastos Filho Date: Tue, 19 Dec 2017 15:32:23 -0200 Subject: [PATCH] Update file.c Buffer size of funtion readline is wrong (Line 480) Should be FILE_READ_CHUNK = 1024 bytes instead 256 bytes --- app/modules/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/file.c b/app/modules/file.c index 80a4ea00..670fab89 100644 --- a/app/modules/file.c +++ b/app/modules/file.c @@ -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")