- Fixed a bug which results in losing a character in the write buffer
authorHartmut Birr <osexpert@googlemail.com>
Sat, 15 Jan 2005 20:20:53 +0000 (20:20 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 15 Jan 2005 20:20:53 +0000 (20:20 +0000)
  if there is a  call to lseek immediately after the call to flsbuf.

svn path=/trunk/; revision=13065

reactos/lib/msvcrt/stdio/flsbuf.c

index e0b4154..2ca113c 100644 (file)
@@ -93,6 +93,7 @@ int _flsbuf(int c, FILE* f)
     if ((f->_flag & (_IO_LBF|_IONBF)) == 0) {
         f->_cnt--;
         *f->_ptr++ = c;
+        f->_flag |= _IODIRTY;
     }
     return c;
 }