X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffilecount.c;h=c81fdc250c9840901cafeb2f7a09098963bed105;hb=42ca41a0798e3a2b742f7da3bacc03fbaf6175fa;hp=270e5d0528f567ca99307d9a01199529dcdc45b6;hpb=43aca8ed8b22a7a5a14f8c740948d6ce06efbc95;p=collectd.git diff --git a/src/filecount.c b/src/filecount.c index 270e5d05..c81fdc25 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -399,7 +399,7 @@ static int fc_config_add_dir (oconfig_item_t *ci) { fc_directory_conf_t **temp; - temp = (fc_directory_conf_t **) realloc (directories, + temp = realloc (directories, sizeof (*directories) * (directories_num + 1)); if (temp == NULL) {