summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 22:32:15 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 22:32:15 +0100
commit0f3a27b95f4efb0b541bacf2684a904787e4bab3 (patch)
treea5000cb8099c0320e24517214eb8e928a10e86e7 /src
parentc537cb8014eb4a46d4de61e9359c4af2e04c4574 (diff)
downloadxine-lib-0f3a27b95f4efb0b541bacf2684a904787e4bab3.tar.gz
xine-lib-0f3a27b95f4efb0b541bacf2684a904787e4bab3.tar.bz2
Avoid a multiplication.
Diffstat (limited to 'src')
-rw-r--r--src/input/input_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 38658b161..c4ce7af83 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -249,7 +249,7 @@ static int http_plugin_basicauth (const char *user, const char *password, char*
if (len < enclen)
return -1;
- tmp = malloc (sizeof(char) * (totlen + 1));
+ tmp = malloc (totlen + 1);
strcpy (tmp, user);
strcat (tmp, ":");
if (password != NULL)