diff options
author | Matt Kraai <kraai@debian.org> | 2001-11-12 16:57:27 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-11-12 16:57:27 +0000 |
commit | c8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch) | |
tree | b704ef3f684a41c7705b5e36dac2127d23d129c4 /editors/sed.c | |
parent | 357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff) | |
download | busybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz busybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.bz2 busybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip |
Change strdup calls to xstrdup (patch from Steve Merrifield).
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 3afa64e8f..66dfa1505 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -173,7 +173,7 @@ static int index_of_next_unescaped_regexp_delim(const struct sed_cmd * const sed | |||
173 | */ | 173 | */ |
174 | static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, regex_t **regex) | 174 | static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, regex_t **regex) |
175 | { | 175 | { |
176 | char *my_str = strdup(str); | 176 | char *my_str = xstrdup(str); |
177 | int idx = 0; | 177 | int idx = 0; |
178 | char olddelimiter; | 178 | char olddelimiter; |
179 | olddelimiter = sed_cmd->delimiter; | 179 | olddelimiter = sed_cmd->delimiter; |