make sure not to corrupt memory here

This commit is contained in:
Tim Felgentreff 2020-04-13 23:54:30 +02:00
parent 22c823f0aa
commit 0c530a7e6a

View file

@ -512,7 +512,7 @@ static bool FindFileWithExtension(char(&file)[PATH_MAX])
return true;
}
#if defined(USE_ZLIB) || defined(USE_BZ2LIB)
char buf[PATH_MAX];
char buf[PATH_MAX + 4];
#endif
#ifdef USE_ZLIB // gzip or bzip2 in global shared directory
sprintf(buf, "%s.gz", file);