From: Eric S. Raymond Date: Mon, 15 Sep 2003 23:44:44 +0000 (+0000) Subject: Better filtering out of binaries. X-Git-Tag: 2.0~66 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=1ab446fe8b747d72a8f842bc5b176c6d1ff85fc3;p=comparator.git Better filtering out of binaries. --- diff --git a/shredtree.c b/shredtree.c index 1401953..410d6c7 100644 --- a/shredtree.c +++ b/shredtree.c @@ -58,7 +58,7 @@ static int eligible(const char *file) /* count printables */ for (cp = buf; *cp; cp++) - if (isascii(*cp)) + if (isgraph(*cp) || isspace(*cp)) printable++; /* are we over the critical percentage? */