diff options
-rw-r--r-- | editors/sed.c | 2 | ||||
-rw-r--r-- | sed.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index bc0e96187..707ab9308 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -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 { @@ -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 { |