diff options
Diffstat (limited to 'src/input')
-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) |