re PR libfortran/32752 (Segfault on WRITE with modified unix_stream structure)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 15 Jul 2007 05:29:29 +0000 (05:29 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 15 Jul 2007 05:29:29 +0000 (05:29 +0000)
commitd40150cc3c1e85a9cbbaebb2679b6bac7a62ecbc
treedf8dbebd175229f5dd9969678dbf00c011fd21d9
parent6816e2e17db97a384cac3f66247a4acb37c4432a
re PR libfortran/32752 (Segfault on WRITE with modified unix_stream structure)

2007-07-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/32752
* io/unix.c (unix_stream): Move buffer pointer adjacent to small_buffer.
* io/transfer.c (formatted_transfer_scalar): If stream I/O, set
bytes_used to zero. Fix off by one error in calculation of pos and
skips. Eliminate duplicate pending_spaces check.

From-SVN: r126652
libgfortran/ChangeLog
libgfortran/io/transfer.c
libgfortran/io/unix.c