From e4a1b09fdb5f2de9bed297cd3c5beb3bd63737a5 Mon Sep 17 00:00:00 2001 From: markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> Date: Mon, 14 May 2001 19:44:44 +0000 Subject: 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 --- sed.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sed.c') diff --git a/sed.c b/sed.c index 99c49c327..7fd803fdb 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; -- cgit v1.2.3-55-g6feb