From 1ab446fe8b747d72a8f842bc5b176c6d1ff85fc3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 15 Sep 2003 23:44:44 +0000 Subject: [PATCH] Better filtering out of binaries. --- shredtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? */ -- 2.43.0