Parcourir la source

_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>
Mirko Vogt il y a 11 ans
Parent
commit
d21603390f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      libc/stdio/_vfprintf.c

+ 1 - 1
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