mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
- Fixed a bug which results in losing a character in the write buffer
if there is a call to lseek immediately after the call to flsbuf. svn path=/trunk/; revision=13065
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user