Fixed error handling in _filebuf().

svn path=/trunk/; revision=2804
This commit is contained in:
Hartmut Birr 2002-04-01 22:00:02 +00:00
parent 3005268105
commit 2cda2c03b3

View file

@ -86,8 +86,8 @@ _filbuf(FILE *f)
//check for error //check for error
if (--f->_cnt < 0) { if (f->_cnt <= 0) {
if (f->_cnt == -1) { if (f->_cnt == 0) {
f->_flag |= _IOEOF; f->_flag |= _IOEOF;
} else } else
f->_flag |= _IOERR; f->_flag |= _IOERR;