6944822: Fix for 6938627 exposes problem with hard-coded buffer sizes

Make tmpdir buffer sizes MAX_PATH+1

Reviewed-by: dholmes, coleenp
This commit is contained in:
Andreas Kohn 2010-04-19 18:58:31 -04:00 committed by Coleen Phillimore
parent 66b6e88578
commit 50654ebc2b
3 changed files with 3 additions and 3 deletions

View file

@ -2305,7 +2305,7 @@ void linux_wrap_code(char* base, size_t size) {
return;
}
char buf[40];
char buf[PATH_MAX+1];
int num = Atomic::add(1, &cnt);
snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d",