aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 90e82f3..53dbfb3 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -755,7 +755,7 @@ monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
if (dev_name)
xfree (dev_name);
- dev_name = strsave (args);
+ dev_name = xstrdup (args);
monitor_desc = SERIAL_OPEN (dev_name);