[git commit] _vfprintf.c: use 'fputws_unlocked(S, F)' instead of 'fputws(S, F)'
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Mar 29 10:24:10 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=d21603390fabc20462ec4ff5990d454ca6d604cd
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
This eliminates a source of reproduceable freezes
Signed-off-by: Mirko Vogt <dev at nanl.de>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 e5da8b4..01ee218 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
More information about the uClibc-cvs
mailing list