gbump on EOF

This commit is contained in:
David Rose 2002-10-16 17:56:10 +00:00
parent 8fc1ac9321
commit a33c3414b9
2 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,7 @@ underflow() {
if (_end != (streampos)0) {
_end = _cur;
}
gbump(num_bytes);
return EOF;
}

View File

@ -221,6 +221,7 @@ underflow() {
if (read_count != num_bytes) {
// Oops, we didn't read what we thought we would.
if (read_count == 0) {
gbump(num_bytes);
return EOF;
}