This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: [patch] streambuf.tcc fix (i hope :)
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: [patch] streambuf.tcc fix (i hope :)
- From: brent verner <brent at rcfile dot org>
- Date: Mon, 5 Jun 2000 09:22:33 -0400
- References: <20000605072651.A1988@rcfile.org>
hmm... sorry about the bad diff. a diff using -cp is below.
FWIW, the change tests good on fbsd-4.0 as well!
cheers!
brent
==========================
diff -cpr libstdc++-v3/ChangeLog libstdc++-v3.brent/ChangeLog
*** libstdc++-v3/ChangeLog Fri Jun 2 21:52:32 2000
--- libstdc++-v3.brent/ChangeLog Mon Jun 5 09:14:32 2000
***************
*** 1,3 ****
--- 1,6 ----
+ 2000-06-05 Brent Verner <brent@rcfile.org>
+ * bits/streambuf.tcc: repaired _S_copy_streambufs()
+
2000-06-02 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* bits/locale_facets.h: Tweak.
diff -cpr libstdc++-v3/bits/streambuf.tcc libstdc++-v3.brent/bits/streambuf.tcc
*** libstdc++-v3/bits/streambuf.tcc Fri May 19 05:33:23 2000
--- libstdc++-v3.brent/bits/streambuf.tcc Mon Jun 5 09:13:58 2000
*************** namespace std {
*** 242,247 ****
--- 242,251 ----
}
else
break;
+
+ __bufsize = __sbin->in_avail();
+ // could cheat and use _M_buf_size to save a fn call -=db=-
+ // __bufsize = __sbin->_M_buf_size;
}
}
catch(exception& __fail) {