diff --git a/reactos/lib/crtdll/stdio/filbuf.c b/reactos/lib/crtdll/stdio/filbuf.c index 2bab0044ae0..b9b008affe1 100644 --- a/reactos/lib/crtdll/stdio/filbuf.c +++ b/reactos/lib/crtdll/stdio/filbuf.c @@ -98,6 +98,7 @@ _filbuf(FILE *f) return EOF; } + f->_cnt--; return *f->_ptr++ & 0377; } diff --git a/reactos/lib/msvcrt/stdio/filbuf.c b/reactos/lib/msvcrt/stdio/filbuf.c index 955df6242ce..b98f48b0749 100644 --- a/reactos/lib/msvcrt/stdio/filbuf.c +++ b/reactos/lib/msvcrt/stdio/filbuf.c @@ -98,6 +98,7 @@ _filbuf(FILE *f) return EOF; } + f->_cnt--; return *f->_ptr++ & 0377; }