summaryrefslogtreecommitdiff
path: root/usr.sbin/ndiscvt
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-11-15 15:05:57 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-11-15 15:05:57 +0000
commitcb711f6d5d029298892bd1ad508619f6bb7f25d7 (patch)
tree88cf4e382260d128d34ec14e0b51e6b99dc0aa5c /usr.sbin/ndiscvt
parent03ad1b0ba0dc4a86469b504aa7ae1d091d942261 (diff)
downloadsrc-test2-cb711f6d5d029298892bd1ad508619f6bb7f25d7.tar.gz
src-test2-cb711f6d5d029298892bd1ad508619f6bb7f25d7.zip
Notes
Diffstat (limited to 'usr.sbin/ndiscvt')
-rw-r--r--usr.sbin/ndiscvt/ndiscvt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ndiscvt/ndiscvt.c b/usr.sbin/ndiscvt/ndiscvt.c
index 3775a3390817..7636c4c75059 100644
--- a/usr.sbin/ndiscvt/ndiscvt.c
+++ b/usr.sbin/ndiscvt/ndiscvt.c
@@ -325,6 +325,8 @@ main(int argc, char *argv[])
rewind (fp);
img = calloc(fsize, 1);
n = fread (img, fsize, 1, fp);
+ if (n == 0)
+ err(1, "reading .SYS file '%s' failed", sysfile);
fclose(fp);