projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e59be
)
We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
author
Mark Whitley
<markw@lineo.com>
Mon, 14 May 2001 19:44:44 +0000
(19:44 -0000)
committer
Mark Whitley
<markw@lineo.com>
Mon, 14 May 2001 19:44:44 +0000
(19:44 -0000)
editors/sed.c
patch
|
blob
|
history
sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index 99c49c3272f49e46995421c037e75a4d824c5902..7fd803fdb295c554baa565919a7fb315d830b225 100644
(file)
--- 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;
diff --git
a/sed.c
b/sed.c
index 99c49c3272f49e46995421c037e75a4d824c5902..7fd803fdb295c554baa565919a7fb315d830b225 100644
(file)
--- 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;