bigger reads

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2020-03-03 14:19:55 +03:00
parent ebee7687e8
commit d9cfa8073f
1 changed files with 2 additions and 2 deletions

View File

@ -837,9 +837,9 @@ uint8_t* readFlatBuffers(const char * filename) {
int cnt = 0;
int b = 0;
while (cnt < fileLen) {
b += fread(data + cnt, 1, 1, in);
b = fread(data + cnt, 1, 16384, in);
cnt++;
cnt += b;
}
fclose(in);