From 515fe7971c2f812953bf4a117263739727eb7336 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/source.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/source.c') diff --git a/gdb/source.c b/gdb/source.c index 95f597bb0b6..8313aeec57e 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1,5 +1,5 @@ /* List lines of source files for GDB, the GNU debugger. - Copyright 1986-1989, 1991-1999 Free Software Foundation, Inc. + Copyright 1986-1989, 1991-1999, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -255,7 +255,7 @@ init_source_path (void) char buf[20]; sprintf (buf, "$cdir%c$cwd", DIRNAME_SEPARATOR); - source_path = strsave (buf); + source_path = xstrdup (buf); forget_cached_source_info (); } @@ -295,7 +295,7 @@ mod_path (char *dirname, char **which_path) if (dirname == 0) return; - dirname = strsave (dirname); + dirname = xstrdup (dirname); make_cleanup (xfree, dirname); do -- cgit v1.2.1