Replace strsave() with xstrdup().
[deliverable/binutils-gdb.git] / gdb / serial.c
index 1d25adfa1e3cb3300896aed17125b65ab27a8636..0f48947440b972a16ccee997b8ddac99dc36f238 100644 (file)
@@ -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;
This page took 0.022629 seconds and 4 git commands to generate.