diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-31 06:22:57 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-31 06:22:57 +0000 |
commit | 70cd856a0c676a8eb2acd677a9627fd1abb92466 (patch) | |
tree | d6fd8108ad27a9f1136035e805fc73a0f58631b2 | |
parent | be5c85a71b0cd460b1e88d54f32a244df29a0b2b (diff) | |
download | src-70cd856a0c676a8eb2acd677a9627fd1abb92466.tar.gz src-70cd856a0c676a8eb2acd677a9627fd1abb92466.zip |
Check for read errors.
Notes
Notes:
svn path=/head/; revision=132918
-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 9ddab2836fb1..2ba4f39bbdae 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); |