From 3a9d887f934cc0de3b4bff024c9458e15f120b02 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 31 Jul 2004 06:22:57 +0000 Subject: Check for read errors. --- usr.bin/colcrt/colcrt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/colcrt') 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); -- cgit v1.1