From Cppcheck v2.15.0:
src/dos.c:388:53: error: Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or
fflush in between result in undefined behaviour. [IOWithoutPositioning]
unsigned n = write ? fwrite(buf, 1, rsize, f) : fread(buf, 1, rsize, f);
^
From Cppcheck v2.15.0: