X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fntpd.c;h=1071d0b34544aa773017f483381f69333f239234;hb=edd9af8a874ebc9f2a7f02846807229a648917db;hp=4a31e455eece36ad595f8bbc41ac7ee6985c35e7;hpb=82c9b0daf5ff90d01f4a4371f11727cd613e4b01;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index 4a31e455..1071d0b3 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -663,7 +663,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, */ DEBUG ("realloc (%p, %zu)", (void *) *res_data, (items_num + pkt_item_num) * res_item_size); - items = realloc ((void *) *res_data, + items = realloc (*res_data, (items_num + pkt_item_num) * res_item_size); if (items == NULL) {