Merge branch 'collectd-4.4'
[collectd.git] / src / filecount.c
index 30de5a2..55b3655 100644 (file)
@@ -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 = '_';