]> thyrsus.com Git - comparator.git/commitdiff
Better filtering out of binaries.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 15 Sep 2003 23:44:44 +0000 (23:44 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 15 Sep 2003 23:44:44 +0000 (23:44 +0000)
shredtree.c

index 1401953090299d1741a9d6ecd01063f9ee94a84d..410d6c7241aa6ae35f23fd9332f4b7349e2817e2 100644 (file)
@@ -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? */