diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -181,7 +181,7 @@ static int get_address(struct sed_cmd *sed_cmd, const char *str, int *line, rege | |||
181 | error_msg_and_die("unterminated match expression"); | 181 | error_msg_and_die("unterminated match expression"); |
182 | my_str[idx] = '\0'; | 182 | my_str[idx] = '\0'; |
183 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); | 183 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); |
184 | xregcomp(*regex, my_str+1, 0); | 184 | xregcomp(*regex, my_str+1, REG_NEWLINE); |
185 | idx++; /* so it points to the next character after the last '/' */ | 185 | idx++; /* so it points to the next character after the last '/' */ |
186 | } | 186 | } |
187 | else { | 187 | else { |