From 70cd856a0c676a8eb2acd677a9627fd1abb92466 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sat, 31 Jul 2004 06:22:57 +0000 Subject: [PATCH] Check for read errors. --- usr.bin/colcrt/colcrt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c index 9ddab2836fb..2ba4f39bbda 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);