diff options
-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 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; @@ -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; |