list_read.c (list_formatted_read_scalar): Fix copying real value back to temporary.

* io/list_read.c (list_formatted_read_scalar): Fix copying real
value back to temporary.

From-SVN: r189856
This commit is contained in:
Andreas Schwab 2012-07-25 16:40:26 +00:00 committed by Andreas Schwab
parent d16586194f
commit a35c9beff6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
* io/list_read.c (list_formatted_read_scalar): Fix copying real
value back to temporary.
2012-06-21 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/39654

View file

@ -1888,7 +1888,7 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p,
read_real (dtp, p, kind);
/* Copy value back to temporary if needed. */
if (dtp->u.p.repeat_count > 0)
memcpy (dtp->u.p.value, p, kind);
memcpy (dtp->u.p.value, p, size);
break;
case BT_COMPLEX:
read_complex (dtp, p, kind, size);