summaryrefslogtreecommitdiff
path: root/src/input/input_http.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2003-12-13 11:35:07 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2003-12-13 11:35:07 +0000
commit6e8e94faf64728ff0124b0ccbe67071264153ec6 (patch)
tree5e07043ebcb9a0150272024b70498042870a0e97 /src/input/input_http.c
parentd8a33d0e2516597b8a337ad65a9c9526d07fed28 (diff)
downloadxine-lib-6e8e94faf64728ff0124b0ccbe67071264153ec6.tar.gz
xine-lib-6e8e94faf64728ff0124b0ccbe67071264153ec6.tar.bz2
Update win32 MSVC build:
* internal names cleanup * http input plugin uses http_helper.c * fix change in audio_directx * MSVC stoped compile xineui because of 'this', mysterious * change non-constand array lengths to malloc/free, it good for such old compilers as my MSVC 6.0 * change lprintf macro for MSVC to compile again (I don't know, how use variable number of macro arguments in MSVC...) * merge compiling of xine-utils and xine-engine CVS patchset: 5902 CVS date: 2003/12/13 11:35:07
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r--src/input/input_http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index e22a94035..93e47aa29 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.77 2003/12/04 21:19:03 tmattern Exp $
+ * $Id: input_http.c,v 1.78 2003/12/13 11:35:07 valtri Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -898,7 +898,7 @@ static void *init_class (xine_t *xine, void *data) {
if((proxy_env = getenv("http_proxy")) && (strlen(proxy_env))) {
int proxy_port = DEFAULT_HTTP_PORT;
- char http_proxy[strlen(proxy_env + 1)];
+ char *http_proxy = xine_xmalloc(strlen(proxy_env + 1));
char *p;
if(!strncmp(proxy_env, "http://", 7))
@@ -915,6 +915,8 @@ static void *init_class (xine_t *xine, void *data) {
this->proxyhost_env = strdup(http_proxy);
this->proxyhost = this->proxyhost_env;
this->proxyport = this->proxyport_env = proxy_port;
+
+ free(http_proxy);
}
}