Index: indirect_streambuf.hpp =================================================================== --- indirect_streambuf.hpp (revision 26) +++ indirect_streambuf.hpp (working copy) @@ -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()); } }