aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-23 17:11:22 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-23 17:11:22 +0000
commit6f3240abf946d99116a633d20d26ad2d681dbaed (patch)
tree012c183f3ed1ba8cb04f65d72851e820c9e8f140
parent6b2c23d847a0942e6dcc5735a5a5512ab1432d28 (diff)
downloadbusybox-6f3240abf946d99116a633d20d26ad2d681dbaed.tar.gz
xstrdup xargs cleanup from Jeff Garzik
-rw-r--r--findutils/xargs.c2
-rw-r--r--xargs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 01aa5be69..48adae90a 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -45,7 +45,7 @@ int xargs_main(int argc, char **argv)
/* Store the command to be executed (taken from the command line) */
if (argc == 1) {
/* default behavior is to echo all the filenames */
- cmd_to_be_executed = strdup("/bin/echo ");
+ cmd_to_be_executed = xstrdup("/bin/echo ");
} else {
/* concatenate all the arguments passed to xargs together */
int i;
diff --git a/xargs.c b/xargs.c
index 01aa5be69..48adae90a 100644
--- a/xargs.c
+++ b/xargs.c
@@ -45,7 +45,7 @@ int xargs_main(int argc, char **argv)
/* Store the command to be executed (taken from the command line) */
if (argc == 1) {
/* default behavior is to echo all the filenames */
- cmd_to_be_executed = strdup("/bin/echo ");
+ cmd_to_be_executed = xstrdup("/bin/echo ");
} else {
/* concatenate all the arguments passed to xargs together */
int i;