Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
...@@ -149,7 +149,7 @@ int main(int argc,char **argv) ...@@ -149,7 +149,7 @@ int main(int argc,char **argv)
smb_close(&smb); smb_close(&smb);
continue; continue;
} }
if((fcrc[i] = malloc(smb.status.total_files * sizeof(uint32_t)))==NULL) { if((fcrc[i] = malloc((smb.status.total_files + 1) * sizeof(uint32_t)))==NULL) {
printf("Not enough memory for CRCs.\r\n"); printf("Not enough memory for CRCs.\r\n");
return(1); return(1);
} }
......