aboutsummaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c1
1 files changed, 1 insertions, 0 deletions
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;