Index: src/strstream.cpp =================================================================== --- src/strstream.cpp +++ src/strstream.cpp @@ -180,7 +180,7 @@ delete [] eback(); } setg(buf, buf + ninp, buf + einp); - setp(buf + einp, buf + einp + eout); + setp(buf + einp, buf + new_size); pbump(static_cast(nout)); __strmode_ |= __allocated; }