From: Mark Whitley Date: Mon, 14 May 2001 19:44:44 +0000 (-0000) Subject: We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt. X-Git-Tag: 0_52~189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9de265926498000ae7adc016a25e3af0d249db79;p=platform%2Fupstream%2Fbusybox.git We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt. --- diff --git a/editors/sed.c b/editors/sed.c index 99c49c3..7fd803f 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 99c49c3..7fd803f 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;