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 | 515fe7971c2f812953bf4a117263739727eb7336 (patch) | |
tree | 4adbd23bd3af86230b780a1b7bfe6cd6b7572a6d /gdb/f-exp.y | |
parent | 56101a1dbfea61e1633a3b53f88696a150ae6c1c (diff) | |
download | gdb-515fe7971c2f812953bf4a117263739727eb7336.tar.gz |
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 9e67561d34f..049d0f5a111 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'; |