Browse Source

darwin: fix proxy URL format (fixes #19803)

(cherry picked from commit a992da82cd)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
pull/135/head
Rémi Denis-Courmont 9 years ago
parent
commit
f044581965
  1. 7
      src/darwin/netconf.c

7
src/darwin/netconf.c

@ -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);

Loading…
Cancel
Save