diff options
author | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-28 21:09:04 +0000 |
---|---|---|
committer | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-28 21:09:04 +0000 |
commit | 9c359eb8fab900283e7576a01078c37a720924a3 (patch) | |
tree | f8b074ab03ba5914254ffbfc53f1c55de03d5e71 /gcc/fortran/symbol.c | |
parent | 540003e2a3ad39a4dfce3d180eace580a300dbae (diff) | |
download | gcc-9c359eb8fab900283e7576a01078c37a720924a3.tar.gz |
* gfortran.h (gfc_gsymbol): Make name a const char *.
* symbol.c (gfc_get_gsymbol): Allocate gsymbol name via
gfc_get_string.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r-- | gcc/fortran/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 26e3f003442..6906b81cc23 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -2410,7 +2410,7 @@ gfc_get_gsymbol (const char *name) s = gfc_getmem (sizeof (gfc_gsymbol)); s->type = GSYM_UNKNOWN; - strcpy (s->name, name); + s->name = gfc_get_string (name); gfc_insert_bbt (&gfc_gsym_root, s, gsym_compare); |