re PR fortran/25587 (Garbage in output of -fdump-tree-original)

2005-12-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR fortran/25587
        * trans-io.c (gfc_build_st_parameter): Correct off by one error.

From-SVN: r109120
This commit is contained in:
Andrew Pinski 2005-12-28 19:21:55 +00:00 committed by Andrew Pinski
parent b21606a6c0
commit ff7417d4c9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-12-28 Andrew Pinski <pinskia@physics.uc.edu>
PR fortran/25587
* trans-io.c (gfc_build_st_parameter): Correct off by one error.
2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* Make-lang.in: Remove distdir from comment.

View File

@ -160,7 +160,7 @@ gfc_build_st_parameter (enum ioparam_type ptype, tree *types)
gcc_assert (len <= sizeof (name) - sizeof ("__st_parameter_"));
memcpy (name, "__st_parameter_", sizeof ("__st_parameter_"));
memcpy (name + sizeof ("__st_parameter_") - 1, st_parameter[ptype].name,
len);
len + 1);
TYPE_NAME (t) = get_identifier (name);
for (type = 0, p = st_parameter_field; type < IOPARM_field_num; type++, p++)