From 8eb861b248b1952f347f3535ce3f2396f6827a4c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 17 Jan 2012 23:37:24 -0500 Subject: Fix chardiff (goes neglected until it is needed) --- chardiff_post.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chardiff_post.c') 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); } } } -- cgit v1.2.3