diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-31 06:22:57 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-31 06:22:57 +0000 |
commit | 3a9d887f934cc0de3b4bff024c9458e15f120b02 (patch) | |
tree | d6fd8108ad27a9f1136035e805fc73a0f58631b2 /usr.bin/colcrt | |
parent | 4817b110157ffcc267fb10ad0b07083cc2ab56fb (diff) | |
download | FreeBSD-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.c | 2 |
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); |