diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
commit | 515fe7971c2f812953bf4a117263739727eb7336 (patch) | |
tree | 4adbd23bd3af86230b780a1b7bfe6cd6b7572a6d /gdb/sh3-rom.c | |
parent | 56101a1dbfea61e1633a3b53f88696a150ae6c1c (diff) | |
download | gdb-515fe7971c2f812953bf4a117263739727eb7336.tar.gz |
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/sh3-rom.c')
-rw-r--r-- | gdb/sh3-rom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c index 47c147b7db0..a470488c242 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++; |