aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-options.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-08-28 17:37:30 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-08-28 17:37:30 +0000
commit36db8e64abf2772b35db7e9405f7ce8cdb21f31f (patch)
tree6e1eb5727b4b609b9861fc9ac392e91d1a33b270 /sim/common/sim-options.c
parent0c0b16f9d44be08326dc6a78be013951c14d7ae2 (diff)
downloadgdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.zip
gdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.tar.gz
gdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.tar.bz2
* sim-options.c (standard_option_handler): Use xstrdup, not strdup.
Diffstat (limited to 'sim/common/sim-options.c')
-rw-r--r--sim/common/sim-options.c2
1 files changed, 1 insertions, 1 deletions
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;
}