commit | 452cc1f2939db40be0ada7212ea6217e1b5effd6 | [log] [tgz] |
---|---|---|
author | Mark Whitley <markw@lineo.com> | Mon May 14 19:23:02 2001 +0000 |
committer | Mark Whitley <markw@lineo.com> | Mon May 14 19:23:02 2001 +0000 |
tree | ee907ec8aa8fdbd4d32fe9a5f1ea19347465f6cb | |
parent | 94964660445e941db0ae9df0d20cf9c92fc15ef4 [diff] |
Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
diff --git a/editors/sed.c b/editors/sed.c index 156ad3a..99c49c3 100644 --- a/editors/sed.c +++ b/editors/sed.c
@@ -181,7 +181,7 @@ 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 {