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) | |||
222 | fatalError("unterminated match expression\n"); | 222 | fatalError("unterminated match expression\n"); |
223 | my_str[idx] = '\0'; | 223 | my_str[idx] = '\0'; |
224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); | 224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); |
225 | xregcomp(*regex, my_str+1, REG_NEWLINE); | 225 | xregcomp(*regex, my_str+1, 0); |
226 | idx++; /* so it points to the next character after the last '/' */ | 226 | idx++; /* so it points to the next character after the last '/' */ |
227 | } | 227 | } |
228 | else { | 228 | else { |
@@ -222,7 +222,7 @@ static int get_address(const char *str, int *line, regex_t **regex) | |||
222 | fatalError("unterminated match expression\n"); | 222 | fatalError("unterminated match expression\n"); |
223 | my_str[idx] = '\0'; | 223 | my_str[idx] = '\0'; |
224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); | 224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); |
225 | xregcomp(*regex, my_str+1, REG_NEWLINE); | 225 | xregcomp(*regex, my_str+1, 0); |
226 | idx++; /* so it points to the next character after the last '/' */ | 226 | idx++; /* so it points to the next character after the last '/' */ |
227 | } | 227 | } |
228 | else { | 228 | else { |