diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2008-05-16 20:37:30 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2008-05-16 20:37:30 +0300 |
commit | 65686652e48ae64f331078abe64b344e3318cfb8 (patch) | |
tree | a27cc7e95bff478494e8a84ef5edf29417f2f678 /libgfortran/io/open.c | |
parent | acb388a0cb8503c7ee94a74c725903e539a19115 (diff) | |
download | gcc-65686652e48ae64f331078abe64b344e3318cfb8.zip gcc-65686652e48ae64f331078abe64b344e3318cfb8.tar.gz gcc-65686652e48ae64f331078abe64b344e3318cfb8.tar.bz2 |
Fix fallout from part 1 of PR25561 patch.
2008-05-16 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/35632
* io/open.c (new_unit): Set stream position to correct value.
From-SVN: r135432
Diffstat (limited to 'libgfortran/io/open.c')
-rw-r--r-- | libgfortran/io/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c index e16386c..d95eccb 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); |