diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/count/count.c | 2 |
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) |