X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_scale.c;h=74652ff81dbeeb6452f0fce8c2d01768e10d3836;hb=23faf977688c7123d624b2911e69e2c9f4d0f78c;hp=3ac399c904bcbafff2a803dc06bb6ee015d0485c;hpb=e7b4b1f7f9e56cecd797b854c5a96582c5f9dd57;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) {