vsprintf() sets _IOWRITING flag

This commit is contained in:
eck 1990-11-13 10:56:53 +00:00
parent be2264283f
commit 0c8acbf834

View file

@ -14,7 +14,7 @@ vsprintf(char *s, const char *format, va_list arg)
FILE tmp_stream;
tmp_stream._fd = -1;
tmp_stream._flags = _IOWRITE + _IONBF;
tmp_stream._flags = _IOWRITE + _IONBF + _IOWRITING;
tmp_stream._buf = (unsigned char *) s;
tmp_stream._ptr = (unsigned char *) s;
tmp_stream._count = 32767;