Commit a35c9bef by Andreas Schwab Committed by Andreas Schwab

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
parent d1658619
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment