* sim-options.c (standard_option_handler): Use xstrdup, not strdup.
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 28 Aug 1997 17:37:30 +0000 (17:37 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 28 Aug 1997 17:37:30 +0000 (17:37 +0000)
sim/common/ChangeLog
sim/common/sim-options.c

index 03efafe2fd983081fde1e6fc83074156abda5b67..9c586fa98f45fc1a9e029e2502c8714d14bbde11 100644 (file)
@@ -1,3 +1,7 @@
+Thu Aug 28 10:36:34 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
+
 Thu Aug 28 12:09:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
index 8ace37a4de0db1be564319716050ce989ddb7c58..94342e4a66b44c0b6e3cf446ae59ca1482b9e38a 100644 (file)
@@ -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;
       }