OSDN Git Service

Fix fallout from part 1 of PR25561 patch.
[pf3gnuchains/gcc-fork.git] / libgfortran / io / open.c
index e16386c..d95eccb 100644 (file)
@@ -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);