aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-07-21 22:09:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-07-21 22:09:44 +0200
commitb0e9b72915a87121aabf21d4e382e16e0a9a5175 (patch)
treef260550026cd79fa5ac59ebe0fa7ff769f0a6d94 /editors
parent26cd90c7fd32f2ef252acb146f8b9152e55346ec (diff)
downloadbusybox-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.gz
busybox-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.bz2
busybox-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.zip
sed: fix matching of newlines by $
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index e625a0965..3a0d917aa 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)
330 next = index_of_next_unescaped_regexp_delim(delimiter, ++pos); 330 next = index_of_next_unescaped_regexp_delim(delimiter, ++pos);
331 temp = copy_parsing_escapes(pos, next); 331 temp = copy_parsing_escapes(pos, next);
332 *regex = xzalloc(sizeof(regex_t)); 332 *regex = xzalloc(sizeof(regex_t));
333 xregcomp(*regex, temp, G.regex_type|REG_NEWLINE); 333 xregcomp(*regex, temp, G.regex_type);
334 free(temp); 334 free(temp);
335 /* Move position to next character after last delimiter */ 335 /* Move position to next character after last delimiter */
336 pos += (next+1); 336 pos += (next+1);