Index: detail/restrict_impl.hpp =================================================================== --- detail/restrict_impl.hpp (revision 65441) +++ detail/restrict_impl.hpp (working copy) @@ -191,7 +191,7 @@ } if (next < beg_ || (end_ != -1 && next >= end_)) boost::throw_exception(bad_seek()); - pos_ = this->component().seek(dev, next, BOOST_IOS::cur); + pos_ = this->component().seek(dev, next - pos_, BOOST_IOS::cur); return offset_to_position(pos_ - beg_); }