summaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authorDenys Vlasenko2013-07-21 22:09:44 +0200
committerDenys Vlasenko2013-07-21 22:09:44 +0200
commitb0e9b72915a87121aabf21d4e382e16e0a9a5175 (patch)
treef260550026cd79fa5ac59ebe0fa7ff769f0a6d94 /editors/sed.c
parent26cd90c7fd32f2ef252acb146f8b9152e55346ec (diff)
downloadbusybox-b0e9b72915a87121aabf21d4e382e16e0a9a5175.zip
busybox-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.gz
sed: fix matching of newlines by $
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index e625a09..3a0d917 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -330,7 +330,7 @@ static int get_address(const char *my_str, int *linenum, regex_t ** regex)
next = index_of_next_unescaped_regexp_delim(delimiter, ++pos);
temp = copy_parsing_escapes(pos, next);
*regex = xzalloc(sizeof(regex_t));
- xregcomp(*regex, temp, G.regex_type|REG_NEWLINE);
+ xregcomp(*regex, temp, G.regex_type);
free(temp);
/* Move position to next character after last delimiter */
pos += (next+1);