X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffilecount.c;h=55b3655ebaccd877b1a3c844839d1fbcd4e60e79;hb=fd9c88963b04c9e9050a952ba0f018493e8b7638;hp=2f10912bff96d9e77d8935e6f16a132e24395030;hpb=246b04fdac89edc0b605bcd18ddee3382595254e;p=collectd.git diff --git a/src/filecount.c b/src/filecount.c index 2f10912b..55b3655e 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -74,7 +74,7 @@ static void fc_submit_dir (const fc_directory_conf_t *dir) sstrncpy (vl.type, "bytes", sizeof (vl.type)); plugin_dispatch_values (&vl); -} /* void qmail_submit */ +} /* void fc_submit_dir */ /* * Config: @@ -98,7 +98,7 @@ static int fc_config_set_instance (fc_directory_conf_t *dir, const char *str) char *ptr; char *copy; - strncpy (buffer, str, sizeof (buffer)); + sstrncpy (buffer, str, sizeof (buffer)); for (ptr = buffer; *ptr != 0; ptr++) if (*ptr == '/') *ptr = '_'; @@ -414,7 +414,7 @@ static int fc_config (oconfig_item_t *ci) } /* for (ci->children) */ return (0); -} /* int qmail_config */ +} /* int fc_config */ static int fc_init (void) {