summaryrefslogtreecommitdiff
path: root/gcc/fortran/symbol.c
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-28 21:09:04 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-28 21:09:04 +0000
commit9c359eb8fab900283e7576a01078c37a720924a3 (patch)
treef8b074ab03ba5914254ffbfc53f1c55de03d5e71 /gcc/fortran/symbol.c
parent540003e2a3ad39a4dfce3d180eace580a300dbae (diff)
downloadgcc-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.c2
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);