diff options
author | Mark Whitley <markw@lineo.com> | 2001-05-14 19:44:44 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-05-14 19:44:44 +0000 |
commit | 9de265926498000ae7adc016a25e3af0d249db79 (patch) | |
tree | cc9a66bd7e3be2401b3e66246f4b65da4d79f54d | |
parent | 35e59bed9750e2672af11bf3f30093d5e5bd1777 (diff) | |
download | busybox-w32-9de265926498000ae7adc016a25e3af0d249db79.tar.gz busybox-w32-9de265926498000ae7adc016a25e3af0d249db79.tar.bz2 busybox-w32-9de265926498000ae7adc016a25e3af0d249db79.zip |
We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
-rw-r--r-- | editors/sed.c | 1 | ||||
-rw-r--r-- | sed.c | 1 |
2 files changed, 2 insertions, 0 deletions
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) | |||
677 | /* go through every line in the file */ | 677 | /* go through every line in the file */ |
678 | while ((line = get_line_from_file(file)) != NULL) { | 678 | while ((line = get_line_from_file(file)) != NULL) { |
679 | 679 | ||
680 | chomp(line); | ||
680 | linenum++; | 681 | linenum++; |
681 | line_altered = 0; | 682 | line_altered = 0; |
682 | 683 | ||
@@ -677,6 +677,7 @@ static void process_file(FILE *file) | |||
677 | /* go through every line in the file */ | 677 | /* go through every line in the file */ |
678 | while ((line = get_line_from_file(file)) != NULL) { | 678 | while ((line = get_line_from_file(file)) != NULL) { |
679 | 679 | ||
680 | chomp(line); | ||
680 | linenum++; | 681 | linenum++; |
681 | line_altered = 0; | 682 | line_altered = 0; |
682 | 683 | ||