diff --git a/bin/count.c b/bin/count.c index 869733df6..517cb8d99 100644 --- a/bin/count.c +++ b/bin/count.c @@ -13,10 +13,10 @@ int main( void ) c = fgetc(stdin); while(c != EOF) { - if (c=='.' || c=='E' || c=='F') count++; + if (c=='.' || c=='E' || c=='F' || c=='s') count++; else count=0; fputc(c, stdout); fflush(stdout); - if ( count % 76 == 0) { + if (count && count % 76 == 0) { fprintf(stderr, "%4d", count); fflush(stderr); }