From 36db8e64abf2772b35db7e9405f7ce8cdb21f31f Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 28 Aug 1997 17:37:30 +0000 Subject: [PATCH] * sim-options.c (standard_option_handler): Use xstrdup, not strdup. --- sim/common/ChangeLog | 4 ++++ sim/common/sim-options.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 03efafe..9c586fa 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 28 10:36:34 1997 Doug Evans + + * sim-options.c (standard_option_handler): Use xstrdup, not strdup. + Thu Aug 28 12:09:15 1997 Andrew Cagney * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 8ace37a..94342e4 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -264,7 +264,7 @@ standard_option_handler (sd, opt, arg, is_command) case OPTION_TARGET: { - STATE_TARGET (sd) = strdup (arg); + STATE_TARGET (sd) = xstrdup (arg); break; } -- 2.7.4