summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-14 23:00:41 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-14 23:00:41 +0000
commitbb62a769e4a50cef3023408bf9a527e63b7d884d (patch)
treedb7f13ad30d7dca75093b0bd4827bdfc75b91de8
parent9ad362d2dd562ca3f15b7e9b9600db68066500ac (diff)
downloadxine-lib-bb62a769e4a50cef3023408bf9a527e63b7d884d.tar.gz
xine-lib-bb62a769e4a50cef3023408bf9a527e63b7d884d.tar.bz2
fix memleak
CVS patchset: 5730 CVS date: 2003/11/14 23:00:41
-rw-r--r--src/input/input_http.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 1887a8f35..daf40c664 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.69 2003/11/12 19:58:19 f1rmb Exp $
+ * $Id: input_http.c,v 1.70 2003/11/14 23:00:41 f1rmb Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -259,8 +259,7 @@ static int http_plugin_parse_url (char *urlbuf, char **user, char **password,
return 0;
}
-static int http_plugin_basicauth (const char *user, const char *password,
- char* dest, int len) {
+static int http_plugin_basicauth (const char *user, const char *password, char* dest, int len) {
static char *enctable="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
char *tmp;
char *sptr;
@@ -857,8 +856,8 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
}
if (!strncasecmp(this->buf, "Location: ", 10)) {
- char *href = strdup (this->buf + 10);
-
+ char *href = (this->buf + 10);
+
lprintf ("input_http: trying to open target of redirection: >%s<\n", href);
strncpy (this->mrlbuf, href, BUFSIZE);