Fix build.

MFC after:	2 weeks
X-MFC-With:	r345900
This commit is contained in:
Xin LI 2019-04-05 02:37:10 +00:00
parent d78b6f1ee8
commit d325f3c243

View File

@ -488,7 +488,7 @@ check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir)
off *= boot->bpbBytesPerSec;
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");
free(buf);
return FSFATAL;