Buffer size need to be at least a page size. (probably better to keep it a multiple of a page size)

This commit is contained in:
Godzil 2019-07-24 16:08:52 +01:00
parent 36fd2b86c5
commit 2ce7c94d11

View File

@ -47,7 +47,7 @@
#define MIN(x, y) ((x) < (y) ? (x) : (y)) #define MIN(x, y) ((x) < (y) ? (x) : (y))
#define BUFFER_SIZE 1024 #define BUFFER_SIZE 4096
static char *mmap_buffer; static char *mmap_buffer;