diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 22:32:15 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 22:32:15 +0100 |
commit | 0f3a27b95f4efb0b541bacf2684a904787e4bab3 (patch) | |
tree | a5000cb8099c0320e24517214eb8e928a10e86e7 | |
parent | c537cb8014eb4a46d4de61e9359c4af2e04c4574 (diff) | |
download | xine-lib-0f3a27b95f4efb0b541bacf2684a904787e4bab3.tar.gz xine-lib-0f3a27b95f4efb0b541bacf2684a904787e4bab3.tar.bz2 |
Avoid a multiplication.
-rw-r--r-- | src/input/input_http.c | 2 |
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) |