sstrncpy (vl.type, "bytes", sizeof (vl.type));
plugin_dispatch_values (&vl);
-} /* void qmail_submit */
+} /* void fc_submit_dir */
/*
* Config:
char *ptr;
char *copy;
- strncpy (buffer, str, sizeof (buffer));
+ sstrncpy (buffer, str, sizeof (buffer));
for (ptr = buffer; *ptr != 0; ptr++)
if (*ptr == '/')
*ptr = '_';
fc_directory_conf_t **temp;
temp = (fc_directory_conf_t **) realloc (directories,
- sizeof (*directories) * directories_num);
+ sizeof (*directories) * (directories_num + 1));
if (temp == NULL)
{
ERROR ("filecount plugin: realloc failed.");
} /* for (ci->children) */
return (0);
-} /* int qmail_config */
+} /* int fc_config */
static int fc_init (void)
{