1 From 543460903545b59903bc83221a6cea02afd0e04f Mon Sep 17 00:00:00 2001
2 From: Mirko Vogt <dev@nanl.de>
3 Date: Fri, 21 Sep 2012 17:29:15 +0200
4 Subject: [PATCH] _vfprintf.c: use 'fputws_unlocked(S, F)' instead of
7 This eliminates a source of reproduceable freezes
9 Signed-off-by: Mirko Vogt <dev@nanl.de>
10 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
12 libc/stdio/_vfprintf.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c
16 index 3db8cdf..069db16 100644
17 --- a/libc/stdio/_vfprintf.c
18 +++ b/libc/stdio/_vfprintf.c
19 @@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf
21 #define _PPFS_init _ppwfs_init
23 -#define OUTPUT(F,S) fputws(S,F)
24 +#define OUTPUT(F,S) fputws_unlocked(S,F)
25 /* TODO: #define OUTPUT(F,S) _wstdio_fwrite((S),wcslen(S),(F)) */
26 #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
27 #define FP_OUT _fp_out_wide