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/serial.c | |
parent | 56101a1dbfea61e1633a3b53f88696a150ae6c1c (diff) | |
download | gdb-515fe7971c2f812953bf4a117263739727eb7336.tar.gz |
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/serial.c b/gdb/serial.c index 1d25adfa1e3..0f48947440b 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -1,5 +1,7 @@ /* Generic serial interface routines - Copyright 1992, 1993, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. + + Copyright 1992, 1993, 1996, 1997, 1999, 2000, 2001 Free Software + Foundation, Inc. This file is part of GDB. @@ -213,7 +215,7 @@ serial_open (const char *name) return NULL; } - scb->name = strsave (name); + scb->name = xstrdup (name); scb->next = scb_base; scb->refcnt = 1; scb->debug_p = 0; |