summaryrefslogtreecommitdiffstats
path: root/usr.bin/colcrt
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-31 06:22:57 +0000
committertjr <tjr@FreeBSD.org>2004-07-31 06:22:57 +0000
commit3a9d887f934cc0de3b4bff024c9458e15f120b02 (patch)
treed6fd8108ad27a9f1136035e805fc73a0f58631b2 /usr.bin/colcrt
parent4817b110157ffcc267fb10ad0b07083cc2ab56fb (diff)
downloadFreeBSD-src-3a9d887f934cc0de3b4bff024c9458e15f120b02.zip
FreeBSD-src-3a9d887f934cc0de3b4bff024c9458e15f120b02.tar.gz
Check for read errors.
Diffstat (limited to 'usr.bin/colcrt')
-rw-r--r--usr.bin/colcrt/colcrt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c
index 9ddab28..2ba4f39 100644
--- a/usr.bin/colcrt/colcrt.c
+++ b/usr.bin/colcrt/colcrt.c
@@ -196,6 +196,8 @@ cont:
continue;
}
}
+ if (ferror(stdin))
+ err(1, NULL);
} while (argc > 0);
fflush(stdout);
exit(0);
OpenPOWER on IntegriCloud