abuild-fetch: adjust maxlength of outfile

so we have buffer space for the ".part" suffix.
This commit is contained in:
Natanael Copa 2020-07-06 10:35:45 +00:00
parent 529904eade
commit 606174552e
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ int fork_exec(char *argv[], int showerr)
int fetch(char *url, const char *destdir, bool insecure)
{
int lockfd, status=0;
char outfile[PATH_MAX], partfile[PATH_MAX];
char outfile[PATH_MAX-5], partfile[PATH_MAX];
char *name, *p;
struct flock fl = {
.l_type = F_WRLCK,