diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-19 21:14:32 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-19 21:14:32 +0000 |
commit | 84ba508d2e24ce851d3a80bce59341def6100c3f (patch) | |
tree | cbb281cedb40ac95998b7f70fb0ffd6debe3f362 /libio/isgetline.cc | |
parent | 93b822e5b3ec10f43950b02482511b5ad3f82f1d (diff) | |
download | gcc-84ba508d2e24ce851d3a80bce59341def6100c3f.tar.gz |
* isgetline.cc (istream::get): Fix a typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19314 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/isgetline.cc')
-rw-r--r-- | libio/isgetline.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libio/isgetline.cc b/libio/isgetline.cc index 2a2cd0f58a7..02b34927eb8 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; |