From b53d2e82b40ada1212d424c367c776744d5fd9da Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 14 Jul 2015 22:22:58 +0200 Subject: Made the censoring tool more censory --- censor | Bin 26088 -> 26088 bytes censor.c | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/censor b/censor index cecacce..7b9606e 100755 Binary files a/censor and b/censor differ diff --git a/censor.c b/censor.c index 659d19c..80eabc8 100644 --- a/censor.c +++ b/censor.c @@ -55,12 +55,12 @@ int main(int argc, char **argv){ int c; while((c = fgetwc(f)) > 0){ - if(strchr("acemnopqrsuvwxyz", c)) + if(strchr("acegmnopqrsuvwxyz", c)) printf("▄"); - else if(strchr("bdfhijkltABCDEFGHIJKLMNOPQRSTUVWXYZ", c)) - printf("█"); - else + else if(strchr(".,:; \t\r\n", c)) printf("%lc", c); + else + printf("█"); } fclose(f); -- cgit