From 4605b90ff1e0de5b12e04647cd5dacd9848a9a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 23 Oct 2020 02:12:30 +0200 Subject: release 1.2.1 --- tt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tt.c') diff --git a/tt.c b/tt.c index 66acdb2..94f3c35 100644 --- a/tt.c +++ b/tt.c @@ -97,6 +97,7 @@ int main(int argc, char *argv[]) { if (line == NULL) err(1, "malloc"); while ((b = getchar()) != EOF) { c = b; + if (c == '\r') continue; if (c != '\n') { if (line_l + 1 > line_s) { line_s += 20; @@ -133,6 +134,7 @@ int main(int argc, char *argv[]) { while ((b = fgetc(fo)) != EOF) { c = b; + if (c == '\r') continue; if (c != '\n') { if (line_l + 1 > line_s) { line_s += 20; -- cgit v1.2.3