aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
commit4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch)
tree54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/source.c
parente191e0abe5e90c81f39b0a428de8e4e44184161f (diff)
downloadgdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 95f597b..8313aee 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