diff options
| author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-14 19:23:02 +0000 |
|---|---|---|
| committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-14 19:23:02 +0000 |
| commit | f4f4fab7eadcb31704f85aa6d9e8207ecda7665e (patch) | |
| tree | ee907ec8aa8fdbd4d32fe9a5f1ea19347465f6cb | |
| parent | 29719381851d74f04cca5aa198b4c47ada46947e (diff) | |
| download | busybox-w32-f4f4fab7eadcb31704f85aa6d9e8207ecda7665e.tar.gz busybox-w32-f4f4fab7eadcb31704f85aa6d9e8207ecda7665e.tar.bz2 busybox-w32-f4f4fab7eadcb31704f85aa6d9e8207ecda7665e.zip | |
Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
git-svn-id: svn://busybox.net/trunk/busybox@2636 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -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 156ad3ada..99c49c327 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
| @@ -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 { |
| @@ -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 { |
