aboutsummaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-11-03 20:23:49 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-11-03 20:23:49 +0000
commitbae27f64d2fc13679626a7479adff20be73d8119 (patch)
treee3c2b2a36eb3f318628c36023ad646103cd97a23 /sed.c
parentf63f29f6f6619ab4e115323a1e896a1798707062 (diff)
downloadbusybox-w32-bae27f64d2fc13679626a7479adff20be73d8119.tar.gz
busybox-w32-bae27f64d2fc13679626a7479adff20be73d8119.tar.bz2
busybox-w32-bae27f64d2fc13679626a7479adff20be73d8119.zip
Removed REG_NEWLINE from regcomp to fix the same bug found in grep where it
would not match blank lines (bug #1064). Followed Matt Kraii's suit on his 1.42 revision of grep. Tested it, works. git-svn-id: svn://busybox.net/trunk/busybox@1284 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sed.c b/sed.c
index bc0e96187..707ab9308 100644
--- a/sed.c
+++ b/sed.c
@@ -222,7 +222,7 @@ static int get_address(const char *str, int *line, regex_t **regex)
222 fatalError("unterminated match expression\n"); 222 fatalError("unterminated match expression\n");
223 my_str[idx] = '\0'; 223 my_str[idx] = '\0';
224 *regex = (regex_t *)xmalloc(sizeof(regex_t)); 224 *regex = (regex_t *)xmalloc(sizeof(regex_t));
225 xregcomp(*regex, my_str+1, REG_NEWLINE); 225 xregcomp(*regex, my_str+1, 0);
226 idx++; /* so it points to the next character after the last '/' */ 226 idx++; /* so it points to the next character after the last '/' */
227 } 227 }
228 else { 228 else {