diff options
author | Mark Whitley | 2000-11-03 20:23:49 +0000 |
---|---|---|
committer | Mark Whitley | 2000-11-03 20:23:49 +0000 |
commit | eb69ead09102ef9cb404a4b3e72b6615321b49e6 (patch) | |
tree | e3c2b2a36eb3f318628c36023ad646103cd97a23 /sed.c | |
parent | e7ff2842dd180f1d9b35ae6d6d7bca5ee8af77d9 (diff) | |
download | busybox-eb69ead09102ef9cb404a4b3e72b6615321b49e6.zip busybox-eb69ead09102ef9cb404a4b3e72b6615321b49e6.tar.gz |
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.
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -222,7 +222,7 @@ static int get_address(const char *str, int *line, regex_t **regex) fatalError("unterminated match expression\n"); my_str[idx] = '\0'; *regex = (regex_t *)xmalloc(sizeof(regex_t)); - xregcomp(*regex, my_str+1, REG_NEWLINE); + xregcomp(*regex, my_str+1, 0); idx++; /* so it points to the next character after the last '/' */ } else { |