diff options
Diffstat (limited to 'dump')
-rw-r--r-- | dump/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dump/main.c b/dump/main.c index 3a6607a..c44d23c 100644 --- a/dump/main.c +++ b/dump/main.c @@ -80,8 +80,7 @@ static int dump_sb(const char* spec) if (fd < 0) return 1; - if (read(fd, &sb, sizeof(struct exfat_super_block)) - != sizeof(struct exfat_super_block)) + if (exfat_read(fd, &sb, sizeof(struct exfat_super_block)) < 0) { exfat_close(fd); exfat_error("failed to read from `%s'", spec); |