aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh3-rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sh3-rom.c')
-rw-r--r--gdb/sh3-rom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c
index 47c147b..a470488 100644
--- a/gdb/sh3-rom.c
+++ b/gdb/sh3-rom.c
@@ -1,5 +1,5 @@
/* Remote target glue for the Hitachi SH-3 ROM monitor.
- Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
@@ -249,7 +249,7 @@ sh3_open (char *args, int from_tty)
if (args)
{
- char *cursor = serial_port_name = strsave (args);
+ char *cursor = serial_port_name = xstrdup (args);
while (*cursor && *cursor != ' ')
cursor++;
@@ -289,7 +289,7 @@ sh3e_open (char *args, int from_tty)
if (args)
{
- char *cursor = serial_port_name = strsave (args);
+ char *cursor = serial_port_name = xstrdup (args);
while (*cursor && *cursor != ' ')
cursor++;