Fix build.

MFC after:	2 weeks
X-MFC-With:	r345900
This commit is contained in:
delphij 2019-04-05 02:37:10 +00:00
parent 437a93c1f4
commit 9d029ca482

View File

@ -488,7 +488,7 @@ check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir)
off *= boot->bpbBytesPerSec; off *= boot->bpbBytesPerSec;
if (lseek(f, off, SEEK_SET) != off || if (lseek(f, off, SEEK_SET) != off ||
read(f, buf, boot->bpbBytesPerSec) != boot->bpbBytesPerSec) { read(f, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) {
perr("Unable to read directory"); perr("Unable to read directory");
free(buf); free(buf);
return FSFATAL; return FSFATAL;