diff options
author | H.J. Lu <hjl@gnu.org> | 1998-04-19 21:14:32 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-04-19 15:14:32 -0600 |
commit | f77cc4ccb1b1eecbdef4fd0c0346208f79d79879 (patch) | |
tree | cbb281cedb40ac95998b7f70fb0ffd6debe3f362 /libio | |
parent | 39339a62dcd55f856640e7299d4a8e36b4f001d5 (diff) | |
download | gcc-f77cc4ccb1b1eecbdef4fd0c0346208f79d79879.zip gcc-f77cc4ccb1b1eecbdef4fd0c0346208f79d79879.tar.gz gcc-f77cc4ccb1b1eecbdef4fd0c0346208f79d79879.tar.bz2 |
* isgetline.cc (istream::get): Fix a typo.
From-SVN: r19314
Diffstat (limited to 'libio')
-rw-r--r-- | libio/ChangeLog | 4 | ||||
-rw-r--r-- | libio/isgetline.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index cf2e3df..3c07e25 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/libio/isgetline.cc b/libio/isgetline.cc index 2a2cd0f..02b3492 100644 --- a/libio/isgetline.cc +++ b/libio/isgetline.cc @@ -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; |