[toolchain] uClibc: fix a crash in __read_etc_hosts_r() that occurs if more than...
[openwrt.git] / toolchain / uClibc / patches-0.9.32 / 350-use-fputs_unlocked.patch
1 commit 3e3ae40f053b22fbb9bef50067d6edad4c358c4c
2 Author: Mirko Vogt <dev@nanl.de>
3 Date: Tue May 24 14:36:42 2011 +0200
4
5 use 'fputws_unlocked(S,F)' instead of 'fputws(S,F)'
6
7 this eliminates a source of reproduceable freezes
8
9 diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c
10 index 3db8cdf..069db16 100644
11 --- a/libc/stdio/_vfprintf.c
12 +++ b/libc/stdio/_vfprintf.c
13 @@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf
14 #define STRLEN wcslen
15 #define _PPFS_init _ppwfs_init
16 /* Pulls in fseek: */
17 -#define OUTPUT(F,S) fputws(S,F)
18 +#define OUTPUT(F,S) fputws_unlocked(S,F)
19 /* TODO: #define OUTPUT(F,S) _wstdio_fwrite((S),wcslen(S),(F)) */
20 #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
21 #define FP_OUT _fp_out_wide
This page took 0.040583 seconds and 5 git commands to generate.