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 /shell/lash.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 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c index 5b9d0a6b3..79fd433e3 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -820,7 +820,7 @@ static int expand_arguments(char *command) | |||
820 | 820 | ||
821 | /* We need a clean copy, so strsep can mess up the copy while | 821 | /* We need a clean copy, so strsep can mess up the copy while |
822 | * we write stuff into the original (in a minute) */ | 822 | * we write stuff into the original (in a minute) */ |
823 | cmd = cmd_copy = strdup(command); | 823 | cmd = cmd_copy = xstrdup(command); |
824 | *command = '\0'; | 824 | *command = '\0'; |
825 | for (ix = 0, tmpcmd = cmd; | 825 | for (ix = 0, tmpcmd = cmd; |
826 | (tmpcmd = strsep_space(cmd, &ix)) != NULL; cmd += ix, ix=0) { | 826 | (tmpcmd = strsep_space(cmd, &ix)) != NULL; cmd += ix, ix=0) { |