diff options
author | Dan Fandrich | 2009-11-18 10:48:09 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-18 10:48:09 +0100 |
commit | 5b0a7f1a6e66af3f1ff4159d4eb96c30517782b8 (patch) | |
tree | a80cc18d00c88ad9c2211939e7fc1b2d9a13cfe6 /include/libbb.h | |
parent | 995f15452a265190c222442758a21fed2233ba14 (diff) | |
download | busybox-5b0a7f1a6e66af3f1ff4159d4eb96c30517782b8.zip busybox-5b0a7f1a6e66af3f1ff4159d4eb96c30517782b8.tar.gz |
wc: fix a hang gue to isprint(EOF)
The new isprint replacement macro returns TRUE for isprint(EOF), so the
read loop never returns. Moved the check for EOF immediately after the
read.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
0 files changed, 0 insertions, 0 deletions