apps/dl: final fix in HTTPS proxy
Build system / Check kernel codestyle (pull_request) Successful in 36s
Build system / Build (pull_request) Successful in 9m50s

This commit is contained in:
2026-05-17 14:05:45 +03:00
parent 10afb9dd0f
commit 33d20e119e
+2 -11
View File
@@ -190,7 +190,8 @@ void StartDownloading()
DrawWindow();
return;
}
miniprintf(#get_url, "%s%s", #proxy_address, #uEdit);
strcpy(#get_url, #proxy_address);
strncat(#get_url, #uEdit, URL_SIZE);
} else {
strcpy(#get_url, #uEdit);
}
@@ -286,16 +287,6 @@ void MonitorProgress()
void CompleteDownload()
{
char dbg[128];
strcpy(#dbg, "DIAG len=");
strcat(#dbg, itoa(http.content_received));
strcat(#dbg, " clen=");
strcat(#dbg, itoa(http.content_length));
strcat(#dbg, " ptr=");
strcat(#dbg, itoa(http.content_pointer));
strcat(#dbg, " rr=");
strcat(#dbg, itoa(http.receive_result));
notify(#dbg);
SaveFile(0);
if (autoclose.checked) ExitProcess();
pb.value = pb.max;