diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-25 23:36:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-25 23:36:12 +0000 |
commit | f74e067e1e5945a6e9d6c71d1afe1ec25438b8e3 (patch) | |
tree | c7f2f052088591dfe871d8cf637d841b53e8d8ce /usr.bin/less/charset.c | |
parent | 7f0c2302d7b689549cc11dfc190c1cc5d43a478f (diff) |
isprint() doesn't consider all whitespace to be printable so use
isspace() too. Problem noticed by cedric@ and diagnosed by deraadt@.
OK deraadt@.
Diffstat (limited to 'usr.bin/less/charset.c')
-rw-r--r-- | usr.bin/less/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/charset.c b/usr.bin/less/charset.c index cf731c60189..9305e2839cd 100644 --- a/usr.bin/less/charset.c +++ b/usr.bin/less/charset.c @@ -353,7 +353,7 @@ init_charset() binary_char(c) unsigned char c; { - return (!isprint(c)); + return (!isprint(c) && !isspace(c)); } /* |