commit | 9de265926498000ae7adc016a25e3af0d249db79 | [log] [tgz] |
---|---|---|
author | Mark Whitley <markw@lineo.com> | Mon May 14 19:44:44 2001 +0000 |
committer | Mark Whitley <markw@lineo.com> | Mon May 14 19:44:44 2001 +0000 |
tree | cc9a66bd7e3be2401b3e66246f4b65da4d79f54d | |
parent | 35e59bed9750e2672af11bf3f30093d5e5bd1777 [diff] [blame] |
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 @@ /* go through every line in the file */ while ((line = get_line_from_file(file)) != NULL) { + chomp(line); linenum++; line_altered = 0;