summaryrefslogtreecommitdiff
path: root/chardiff_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'chardiff_post.c')
-rw-r--r--chardiff_post.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/chardiff_post.c b/chardiff_post.c
index 2145759..c7f543f 100644
--- a/chardiff_post.c
+++ b/chardiff_post.c
@@ -13,12 +13,8 @@ main (int argc, char* argv[]) {
case '\\': putchar('\\'); break;
default: putchar(c2); break;
}
- }
- char n = getchar();
- if (n != '\n') {
- printf(
- "%s: found other character when expecting newline: %c",
- argv[0], n);
+ } else if (c!='\n') {
+ putchar(c);
}
}
}