diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index a7c99a16b..c97092a5c 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -209,7 +209,7 @@ static char *copy_parsing_slashn(const char *string, int len) | |||
209 | /* | 209 | /* |
210 | * index_of_next_unescaped_regexp_delim - walks left to right through a string | 210 | * index_of_next_unescaped_regexp_delim - walks left to right through a string |
211 | * beginning at a specified index and returns the index of the next regular | 211 | * beginning at a specified index and returns the index of the next regular |
212 | * expression delimiter (typically a forward * slash ('/')) not preceeded by | 212 | * expression delimiter (typically a forward * slash ('/')) not preceeded by |
213 | * a backslash ('\'). | 213 | * a backslash ('\'). |
214 | */ | 214 | */ |
215 | static int index_of_next_unescaped_regexp_delim(const char delimiter, | 215 | static int index_of_next_unescaped_regexp_delim(const char delimiter, |
@@ -294,7 +294,7 @@ static int get_address(char *my_str, int *linenum, regex_t ** regex) | |||
294 | next = index_of_next_unescaped_regexp_delim(delimiter, ++pos); | 294 | next = index_of_next_unescaped_regexp_delim(delimiter, ++pos); |
295 | if (next == -1) | 295 | if (next == -1) |
296 | bb_error_msg_and_die("unterminated match expression"); | 296 | bb_error_msg_and_die("unterminated match expression"); |
297 | 297 | ||
298 | temp=copy_parsing_slashn(pos,next); | 298 | temp=copy_parsing_slashn(pos,next); |
299 | *regex = (regex_t *) xmalloc(sizeof(regex_t)); | 299 | *regex = (regex_t *) xmalloc(sizeof(regex_t)); |
300 | xregcomp(*regex, temp, REG_NEWLINE); | 300 | xregcomp(*regex, temp, REG_NEWLINE); |
@@ -372,7 +372,7 @@ static int parse_subst_cmd(sed_cmd_t * const sed_cmd, char *substr) | |||
372 | { | 372 | { |
373 | char *temp; | 373 | char *temp; |
374 | idx+=parse_file_cmd(sed_cmd,substr+idx,&temp); | 374 | idx+=parse_file_cmd(sed_cmd,substr+idx,&temp); |
375 | 375 | ||
376 | break; | 376 | break; |
377 | } | 377 | } |
378 | /* Ignore case (gnu exension) */ | 378 | /* Ignore case (gnu exension) */ |