make sure not to corrupt memory here
This commit is contained in:
parent
22c823f0aa
commit
0c530a7e6a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue