Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-05-14 23:23:02 +0400
committerMark Whitley <markw@lineo.com>2001-05-14 23:23:02 +0400
commit452cc1f2939db40be0ada7212ea6217e1b5effd6 (patch)
treeee907ec8aa8fdbd4d32fe9a5f1ea19347465f6cb /sed.c
parent94964660445e941db0ae9df0d20cf9c92fc15ef4 (diff)
Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
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 156ad3ada..99c49c327 100644
--- a/sed.c
+++ b/sed.c
@@ -181,7 +181,7 @@ static int get_address(struct sed_cmd *sed_cmd, const char *str, int *line, rege
error_msg_and_die("unterminated match expression");
my_str[idx] = '\0';
*regex = (regex_t *)xmalloc(sizeof(regex_t));
- xregcomp(*regex, my_str+1, 0);
+ xregcomp(*regex, my_str+1, REG_NEWLINE);
idx++; /* so it points to the next character after the last '/' */
}
else {