From 9de265926498000ae7adc016a25e3af0d249db79 Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Mon, 14 May 2001 19:44:44 +0000 Subject: [PATCH] We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt. --- editors/sed.c | 1 + sed.c | 1 + 2 files changed, 2 insertions(+) diff --git a/editors/sed.c b/editors/sed.c index 99c49c327..7fd803fdb 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -677,6 +677,7 @@ static void process_file(FILE *file) /* go through every line in the file */ while ((line = get_line_from_file(file)) != NULL) { + chomp(line); linenum++; line_altered = 0; diff --git a/sed.c b/sed.c index 99c49c327..7fd803fdb 100644 --- a/sed.c +++ b/sed.c @@ -677,6 +677,7 @@ static void process_file(FILE *file) /* go through every line in the file */ while ((line = get_line_from_file(file)) != NULL) { + chomp(line); linenum++; line_altered = 0; -- 2.25.1