X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail_match.c;h=1aeb814a08398ca961db75e33e87d6d38667dfd2;hb=e7ff69ca970e01edb1b15d79fc1b8dcfaa43e597;hp=1e5da95e181550b3b54e21df6773be0805e5482d;hpb=50345eec33951b964e2829e83c30399b71f2baba;p=collectd.git diff --git a/src/daemon/utils_tail_match.c b/src/daemon/utils_tail_match.c index 1e5da95e..1aeb814a 100644 --- a/src/daemon/utils_tail_match.c +++ b/src/daemon/utils_tail_match.c @@ -179,7 +179,7 @@ int tail_match_add_match (cu_tail_match_t *obj, cu_match_t *match, { cu_tail_match_match_t *temp; - temp = (cu_tail_match_match_t *) realloc (obj->matches, + temp = realloc (obj->matches, sizeof (cu_tail_match_match_t) * (obj->matches_num + 1)); if (temp == NULL) return (-1);