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 | 4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch) | |
tree | 54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/f-exp.y | |
parent | e191e0abe5e90c81f39b0a428de8e4e44184161f (diff) | |
download | gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2 |
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r-- | gdb/f-exp.y | 7 |
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'; |