Due to a bug, the download report only showed the host name instead of the
full url as it used to do prior to version 2.3.2.
Thanks to Kryol for reporting that bug.
unsigned long recs2=0UL;
int OutputNonZero = REPORT_EVERY_X_LINES ;
bool download_flag=false;
- char *download_url=NULL;
+ char download_url[MAXLEN];
struct getwordstruct gwarea;
longline line;
time_t tnum;
*/
download_flag=is_download_suffix(full_url);
if (download_flag) {
- download_url=full_url;
+ safe_strcpy(download_url,full_url,sizeof(download_url));
download_count++;
}
} else
totregsg++;
- if(!dataonly && download_flag && download_url && strstr(code,"DENIED") == 0) {
+ if(!dataonly && download_flag && strstr(code,"DENIED") == 0) {
ndownload = 1;
if ( ! fp_Download_Unsort ) {