Skip to content
Snippets Groups Projects
Commit a992da82 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

darwin: fix proxy URL format (fixes #19803)

parent b46ddaec
No related branches found
No related tags found
No related merge requests found
......@@ -62,11 +62,8 @@ char *vlc_getProxyUrl(const char *url)
char host_buffer[4096];
memset(host_buffer, 0, sizeof(host_buffer));
if (CFStringGetCString(proxyCFstr, host_buffer, sizeof(host_buffer)
- 1, kCFStringEncodingUTF8)) {
char buffer[4096];
sprintf(buffer, "%s:%d", host_buffer, port);
proxy_url = strdup(buffer);
}
- 1, kCFStringEncodingUTF8))
asprintf(&proxy_url, "http://%s:%d", host_buffer, port);
}
CFRelease(dicRef);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment