Fix size setting on file read

This commit is contained in:
Stefan Rueger
2023-06-12 18:28:05 +01:00
parent 51275c36ef
commit 3d71c4c66b

View File

@@ -1440,7 +1440,7 @@ int fileio(int op, const char *filename, FILEFMT format,
return -1;
}
if(size < 0 || op == FIO_READ || FIO_READ_FOR_VERIFY)
if(size < 0 || op == FIO_READ || op == FIO_READ_FOR_VERIFY)
size = mem->size;
const Segment_t seg = {0, size};