diff options
author | Mirko Vogt <dev@nanl.de> | 2012-09-21 17:29:15 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-03-29 11:24:10 +0100 |
commit | d21603390fabc20462ec4ff5990d454ca6d604cd (patch) | |
tree | 33e1bb800fb302e253d4af118bb88af2ae47f0c0 | |
parent | 60e5c34fe39232b5f92bad60d986fda29e4ba05f (diff) |
_vfprintf.c: use 'fputws_unlocked(S, F)' instead of 'fputws(S, F)'
This eliminates a source of reproduceable freezes
Signed-off-by: Mirko Vogt <dev@nanl.de>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/stdio/_vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c index e5da8b4bf..01ee218e5 100644 --- a/libc/stdio/_vfprintf.c +++ b/libc/stdio/_vfprintf.c @@ -1202,7 +1202,7 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf #define STRLEN wcslen #define _PPFS_init _ppwfs_init /* Pulls in fseek: */ -#define OUTPUT(F,S) fputws(S,F) +#define OUTPUT(F,S) fputws_unlocked(S,F) /* TODO: #define OUTPUT(F,S) _wstdio_fwrite((S),wcslen(S),(F)) */ #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream) #define FP_OUT _fp_out_wide |