summaryrefslogtreecommitdiffstats
path: root/usr.bin/ul
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-30 10:58:06 +0000
committertjr <tjr@FreeBSD.org>2004-07-30 10:58:06 +0000
commitc0db43a356aeaab293488f2cfc7bb7ead34ce61b (patch)
tree785ed711f1a76af11a00488c726500a22b3d4073 /usr.bin/ul
parent07b5593d23d34a971e9ce3a66cf01789cef3dad4 (diff)
downloadFreeBSD-src-c0db43a356aeaab293488f2cfc7bb7ead34ce61b.zip
FreeBSD-src-c0db43a356aeaab293488f2cfc7bb7ead34ce61b.tar.gz
Check for read errors.
Diffstat (limited to 'usr.bin/ul')
-rw-r--r--usr.bin/ul/ul.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c
index 6e9a035..c7006a9 100644
--- a/usr.bin/ul/ul.c
+++ b/usr.bin/ul/ul.c
@@ -297,6 +297,8 @@ filter(FILE *f)
maxcol = col;
continue;
}
+ if (ferror(f))
+ err(1, NULL);
if (maxcol)
flushln();
}
OpenPOWER on IntegriCloud