Skip to content

Commit

Permalink
Fix: position() after skip() did not report correct position.
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarFarneback committed Jan 11, 2013
1 parent 53cb68d commit b43dd10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/support/ios.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ off_t ios_skip(ios_t *s, off_t offs)
off_t fdpos = lseek(s->fd, offs, SEEK_CUR);
if (fdpos == (off_t)-1)
return fdpos;
s->fpos = fdpos;
s->bpos = s->size = 0;
s->_eof = 0;
}
Expand Down

0 comments on commit b43dd10

Please sign in to comment.