From 65686652e48ae64f331078abe64b344e3318cfb8 Mon Sep 17 00:00:00 2001 From: Janne Blomqvist Date: Fri, 16 May 2008 20:37:30 +0300 Subject: [PATCH] Fix fallout from part 1 of PR25561 patch. 2008-05-16 Janne Blomqvist PR libfortran/35632 * io/open.c (new_unit): Set stream position to correct value. From-SVN: r135432 --- libgfortran/ChangeLog | 5 +++++ libgfortran/io/open.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index c363ecfd171..f83115ec0ce 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2008-05-16 Janne Blomqvist + + PR libfortran/35632 + * io/open.c (new_unit): Set stream position to correct value. + 2008-05-15 Janne Blomqvist PR libfortran/25561 diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c index e16386cabd7..d95eccbc12d 100644 --- a/libgfortran/io/open.c +++ b/libgfortran/io/open.c @@ -611,7 +611,7 @@ new_unit (st_parameter_open *opp, gfc_unit *u, unit_flags * flags) { u->maxrec = max_offset; u->recl = 1; - u->strm_pos = 1; + u->strm_pos = file_position (u->s) + 1; } memmove (u->file, opp->file, opp->file_len); -- 2.30.2