aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2005-12-28 07:20:19 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2005-12-28 07:20:19 +0000
commitb5918dea9c512bd13382d3fce512b725fe78aa24 (patch)
tree32753959ec36097f3b0ead36346d11877aad5cfd /libgfortran/io
parentf55be19d7b27405c61dc43e9e2f79e3bc34d5175 (diff)
downloadgcc-b5918dea9c512bd13382d3fce512b725fe78aa24.zip
gcc-b5918dea9c512bd13382d3fce512b725fe78aa24.tar.gz
gcc-b5918dea9c512bd13382d3fce512b725fe78aa24.tar.bz2
re PR libfortran/25550 (file data corrupted after reading end of file)
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25550 * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in next_record_r. From-SVN: r109101
Diffstat (limited to 'libgfortran/io')
-rw-r--r--libgfortran/io/file_pos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c
index 3d7dd9a..d9ac1e7 100644
--- a/libgfortran/io/file_pos.c
+++ b/libgfortran/io/file_pos.c
@@ -255,6 +255,7 @@ st_rewind (st_parameter_filepos *fpp)
u->endfile = NO_ENDFILE;
u->current_record = 0;
+ u->bytes_left = 0;
test_endfile (u);
}
/* Update position for INQUIRE. */