Initialized the cnt value of the file structure.

svn path=/trunk/; revision=17299
This commit is contained in:
Hartmut Birr 2005-08-11 19:52:33 +00:00
parent dbabadad17
commit ad52723693

View file

@ -22,7 +22,7 @@ int vfprintf(FILE* f, const char* fmt, va_list ap)
if (f->_flag & _IONBF) {
f->_flag &= ~_IONBF;
f->_ptr = f->_base = localbuf;
f->_bufsiz = BUFSIZ;
f->_bufsiz = f->_cnt = BUFSIZ;
len = __vfprintf(f, fmt, ap);
(void)fflush(f);
f->_flag |= _IONBF;