From 6e8e94faf64728ff0124b0ccbe67071264153ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 13 Dec 2003 11:35:07 +0000 Subject: 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 --- src/input/input_http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/input') 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); } } -- cgit v1.2.3