X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffilecount.c;h=c81fdc250c9840901cafeb2f7a09098963bed105;hb=b5a33aab585aabef83c79bf3261092ca901edf9c;hp=270e5d0528f567ca99307d9a01199529dcdc45b6;hpb=ff9e11ade5cfabf32c63fb19fc76cbbc4186bc5b;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) {