[PATCH] Make _dl_dprintf buf non-static to avoid multithreading bugs.

Chris Metcalf cmetcalf at tilera.com
Wed Dec 23 20:00:55 UTC 2009


---
 ldso/ldso/dl-elf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index a0db637..6b64f3e 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -894,7 +894,7 @@ void _dl_dprintf(int fd, const char *fmt, ...)
 #endif
 	va_list args;
 	char *start, *ptr, *string;
-	static char *buf;
+	char *buf;
 
 	if (!fmt)
 		return;
-- 
1.6.5.2



More information about the uClibc mailing list