diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index afe8a1ca81f..26d0095346d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-04-14 Paolo Carlini + + * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set + _M_out_end, _M_set_indeterminate() does it. + 2003-04-12 John David Anglin * os/hpux/ctype_inline.h: Replace with gnu-linux version. diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index 360b907336b..de74de6e720 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -428,8 +428,6 @@ namespace std // Step 2: Use the external array. this->_M_buf = __s; this->_M_buf_size = __n; - // Consistently set the end of buffer pointer. - this->_M_out_end = this->_M_buf + this->_M_buf_size; _M_set_indeterminate(); } _M_last_overflowed = false;