X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail_match.c;h=1aeb814a08398ca961db75e33e87d6d38667dfd2;hb=d183dca833410ca9c035f2d09ff11d4410d50e43;hp=1e5da95e181550b3b54e21df6773be0805e5482d;hpb=36ee20dc97d0e0a5483892667f5d032618e18f10;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);