Commit f77cc4cc by H.J. Lu Committed by Jeff Law

* isgetline.cc (istream::get): Fix a typo.

From-SVN: r19314
parent 39339a62
Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org)
* isgetline.cc (istream::get): Fix a typo.
Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
* configure.in: Make locating frag files failsafe even for the
......
......@@ -69,11 +69,9 @@ istream& istream::get(char* buf, int len, char delim)
{
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment