aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-exp.y
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/f-exp.y
parente191e0abe5e90c81f39b0a428de8e4e44184161f (diff)
downloadfsf-binutils-gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip
fsf-binutils-gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz
fsf-binutils-gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r--gdb/f-exp.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 9e67561..049d0f5 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -1,6 +1,7 @@
/* YACC parser for Fortran expressions, for GDB.
- Copyright 1986, 1989, 1990, 1991, 1993, 1994
- Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1990, 1991, 1993, 1994, 2001 Free Software
+ Foundation, Inc.
+
Contributed by Motorola. Adapted from the C parser by Farooq Butt
(fmbutt@engage.sps.mot.com).
@@ -653,7 +654,7 @@ parse_number (p, len, parsed_float, putithere)
/* [dD] is not understood as an exponent by atof, change it to 'e'. */
char *tmp, *tmp2;
- tmp = strsave (p);
+ tmp = xstrdup (p);
for (tmp2 = tmp; *tmp2; ++tmp2)
if (*tmp2 == 'd' || *tmp2 == 'D')
*tmp2 = 'e';