From 0c8acbf834841f35f94d5fbc41406957e1f26c19 Mon Sep 17 00:00:00 2001 From: eck Date: Tue, 13 Nov 1990 10:56:53 +0000 Subject: [PATCH] vsprintf() sets _IOWRITING flag --- lang/cem/libcc.ansi/stdio/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/cem/libcc.ansi/stdio/vsprintf.c b/lang/cem/libcc.ansi/stdio/vsprintf.c index 3cd5cb184..52378b858 100644 --- a/lang/cem/libcc.ansi/stdio/vsprintf.c +++ b/lang/cem/libcc.ansi/stdio/vsprintf.c @@ -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;