X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_scale.c;h=74652ff81dbeeb6452f0fce8c2d01768e10d3836;hb=444438552db9fa889fb0b15e8c68ed1804312c1f;hp=3ac399c904bcbafff2a803dc06bb6ee015d0485c;hpb=ff9e11ade5cfabf32c63fb19fc76cbbc4186bc5b;p=collectd.git diff --git a/src/target_scale.c b/src/target_scale.c index 3ac399c9..74652ff8 100644 --- a/src/target_scale.c +++ b/src/target_scale.c @@ -328,7 +328,7 @@ static int ts_config_add_data_source(ts_data_t *data, /* {{{ */ /* Allocate space for the char pointers */ new_data_sources_num = data->data_sources_num + ((size_t) ci->values_num); - temp = (char **) realloc (data->data_sources, + temp = realloc (data->data_sources, new_data_sources_num * sizeof (char *)); if (temp == NULL) {