diff options
author | Matt Kraai | 2001-11-12 16:57:27 +0000 |
---|---|---|
committer | Matt Kraai | 2001-11-12 16:57:27 +0000 |
commit | c8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch) | |
tree | b704ef3f684a41c7705b5e36dac2127d23d129c4 /editors/sed.c | |
parent | 357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff) | |
download | busybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip busybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz |
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 3afa64e..66dfa15 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 */ static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, regex_t **regex) { - char *my_str = strdup(str); + char *my_str = xstrdup(str); int idx = 0; char olddelimiter; olddelimiter = sed_cmd->delimiter; |