Fixed a minor bug in _filbuf().

When there was returned a character from stream,
the counter wasn't decremented.

svn path=/trunk/; revision=2134
This commit is contained in:
Hartmut Birr 2001-08-02 07:26:30 +00:00
parent f1a3075ad7
commit 5e85eb7d8e
2 changed files with 2 additions and 0 deletions

View file

@ -98,6 +98,7 @@ _filbuf(FILE *f)
return EOF;
}
f->_cnt--;
return *f->_ptr++ & 0377;
}

View file

@ -98,6 +98,7 @@ _filbuf(FILE *f)
return EOF;
}
f->_cnt--;
return *f->_ptr++ & 0377;
}