From 6f3240abf946d99116a633d20d26ad2d681dbaed Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 23 Mar 2001 17:11:22 +0000 Subject: [PATCH] xstrdup xargs cleanup from Jeff Garzik --- findutils/xargs.c | 2 +- xargs.c | 2 +- 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; -- 2.25.1