--- boost-1_49/boost/iostreams/detail/streambuf/indirect_streambuf.hpp 2012-10-17 12:44:42.299596554 +0300 +++ boost-1_49/boost/iostreams/detail/streambuf/indirect_streambuf.hpp 2012-10-17 12:44:42.299596554 +0300 @@ -395,7 +395,7 @@ setp(out().begin(), out().end()); else { const char_type* ptr = pptr(); - setp(out().begin() + amt, out().end()); + setp(pbase() + amt, out().end()); pbump(ptr - pptr()); } }