OSDN Git Service

Make _dl_dprintf buf non-static to avoid multithreading bugs.
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 23 Dec 2009 20:00:55 +0000 (15:00 -0500)
committerAustin Foxley <austinf@cetoncorp.com>
Wed, 23 Dec 2009 20:10:50 +0000 (12:10 -0800)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
ldso/ldso/dl-elf.c

index a0db637..6b64f3e 100644 (file)
@@ -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;