2010-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from mainline:
PR libfortran/45710
* io/write.c (namelist_write_newline): Pad character array internal
unit records with spaces.
From-SVN: r165079
+2010-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ Backport from mainline:
+ PR libfortran/45710
+ * io/write.c (namelist_write_newline): Pad character array internal
+ unit records with spaces.
+
2010-10-01 Release Manager
* GCC 4.4.5 released.
if (is_array_io (dtp))
{
gfc_offset record;
- int finished, length;
+ int finished;
+ char *p;
+ int length = dtp->u.p.current_unit->bytes_left;
+
+ p = write_block (dtp, length);
+ if (p == NULL)
+ return;
+ memset (p, ' ', length);
- length = (int) dtp->u.p.current_unit->bytes_left;
-
/* Now that the current record has been padded out,
determine where the next record in the array is. */
record = next_array_record (dtp, dtp->u.p.current_unit->ls,