diff options
| author | Benno Rice <benno@FreeBSD.org> | 2018-04-12 15:50:19 +0000 |
|---|---|---|
| committer | Benno Rice <benno@FreeBSD.org> | 2018-04-12 15:50:19 +0000 |
| commit | 695fed77a84c35366dd5c77a9e84a466ba6702f4 (patch) | |
| tree | 1b8e0eba7b94333dfeef28a5582fbd3e09802059 /usr.bin/etdump | |
| parent | 459a61fd2d0a1068d8e2b293edb724d3f3908900 (diff) | |
Notes
Diffstat (limited to 'usr.bin/etdump')
| -rw-r--r-- | usr.bin/etdump/etdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/etdump/etdump.c b/usr.bin/etdump/etdump.c index d88663c795d5..e8f144c3c52d 100644 --- a/usr.bin/etdump/etdump.c +++ b/usr.bin/etdump/etdump.c @@ -80,7 +80,9 @@ static int read_sector(FILE *iso, daddr_t sector, char *buffer) { - fseek(iso, sector * ISO_DEFAULT_BLOCK_SIZE, SEEK_SET); + if (fseek(iso, sector * ISO_DEFAULT_BLOCK_SIZE, SEEK_SET) != 0) { + return (errno); + } if (fread(buffer, ISO_DEFAULT_BLOCK_SIZE, 1, iso) != 1) { return (errno); } |
