diff options
Diffstat (limited to 'convert.c')
-rw-r--r-- | convert.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -61,6 +61,10 @@ static void gather_stats(const char *buf, unsigned long size, struct text_stat * else stats->printable++; } + + /* If file ends with EOF then don't count this EOF as non-printable. */ + if (size >= 1 && buf[size-1] == '\032') + stats->nonprintable--; } /* |