A libio/egcs patch
H.J. Lu
hjl@lucon.org
Sat Apr 4 13:29:00 GMT 1998
This patch fixes a typo of mine. It should apply to both egcs 1.0.2
and egcs snapshot.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Thu Apr 2 08:11:02 1998 H.J. Lu (hjl@gnu.org)
* isgetline.cc (istream::get): Fix a typo.
--- isgetline.cc.orig Thu Apr 2 13:55:09 1998
+++ isgetline.cc Thu Apr 2 13:58:56 1998
@@ -69,11 +69,9 @@
{
streambuf *sbuf = rdbuf();
int ch;
- long count = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
+ _gcount = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
if (_gcount == 0 && ch == EOF)
set(ios::failbit|ios::eofbit);
- else
- _gcount = count;
}
buf[_gcount] = '\0';
return *this;
More information about the Gcc
mailing list