From 4fcf66da885273eeeea8e14b771d0e3ea20799d9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 31 Jan 2001 01:24:03 +0000 Subject: Replace strsave() with xstrdup(). --- gdb/sh3-rom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/sh3-rom.c') 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++; -- cgit v1.1