From 81be71ee542c1189a727c706b0466c48babb7a77 Mon Sep 17 00:00:00 2001 From: Karsten Blees Date: Fri, 7 Jan 2011 18:04:16 +0100 Subject: [PATCH] Win32: fix potential multi-threading issue ...by removing a static buffer in do_stat_internal. Signed-off-by: Karsten Blees Signed-off-by: Erik Faye-Lund --- compat/mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index db42488a1d..24b4014cf0 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -475,7 +475,7 @@ static int do_lstat(int follow, const char *file_name, struct stat *buf) static int do_stat_internal(int follow, const char *file_name, struct stat *buf) { int namelen; - static char alt_name[PATH_MAX]; + char alt_name[PATH_MAX]; if (!do_lstat(follow, file_name, buf)) return 0; -- 2.11.4.GIT