aboutsummaryrefslogtreecommitdiff
path: root/utils/count
diff options
context:
space:
mode:
Diffstat (limited to 'utils/count')
-rw-r--r--utils/count/count.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/count/count.c b/utils/count/count.c
index a37e1e0b25..13250198b9 100644
--- a/utils/count/count.c
+++ b/utils/count/count.c
@@ -26,7 +26,7 @@ int main(int argc, char **argv) {
}
NumLines = 0;
- while ((NumRead = fread(Buffer, 1, sizeof(Buffer), stdin))) {
+ while ((NumRead = fread(Buffer, 1, sizeof(Buffer), stdin)) == sizeof(Buffer)){
unsigned i;
for (i = 0; i != NumRead; ++i)