On 06/18/14 02:03, Grazvydas Ignotas wrote:
@@ -3662,6 +3662,7 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file) if(file->_cnt <= 0) res = msvcrt_flush_buffer(file); if(!res) {
file->_cnt=file->_bufsiz; *file->_ptr++ = c; file->_cnt--; }
file->_cnt value should only be set if msvcrt_flush_buffer was called.
Cheers, Piotr