diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-14 19:44:44 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-14 19:44:44 +0000 |
commit | e4a1b09fdb5f2de9bed297cd3c5beb3bd63737a5 (patch) | |
tree | cc9a66bd7e3be2401b3e66246f4b65da4d79f54d /sed.c | |
parent | 4067782221c07d147e8d135dd5e63feda3a41dee (diff) | |
download | busybox-w32-e4a1b09fdb5f2de9bed297cd3c5beb3bd63737a5.tar.gz busybox-w32-e4a1b09fdb5f2de9bed297cd3c5beb3bd63737a5.tar.bz2 busybox-w32-e4a1b09fdb5f2de9bed297cd3c5beb3bd63737a5.zip |
We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
git-svn-id: svn://busybox.net/trunk/busybox@2638 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 | ||