summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/isohybrid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index 38257f68..57c1015e 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -514,7 +514,9 @@ main(int argc, char *argv[])
if (fseek(fp, 440, SEEK_SET))
err(1, "%s: seek error - 4", argv[0]);
- fread(&id, 4, 1, fp);
+ if (fread(&id, 1, 4, fp) != 4)
+ err(1, "%s: read error", argv[0]);
+
id = lendian_int(id);
if (!id)
{