Win32: fix potential multi-threading issue

...by removing a static buffer in do_stat_internal.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
This commit is contained in:
Karsten Blees 2011-01-07 18:04:16 +01:00 committed by Johannes Schindelin
parent c1641da74d
commit 82d8bd39d9

View file

@ -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;