From: Alessandro Iurlano Date: Thu, 28 Aug 2008 19:16:17 +0000 (+0200) Subject: filecount plugin: s/\/sstrncpy/g X-Git-Tag: collectd-4.5.0~8 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cb3c1c62271e4ef356ef179fd997c1a422f16403;p=collectd.git filecount plugin: s/\/sstrncpy/g --- diff --git a/src/filecount.c b/src/filecount.c index 30de5a25..55b3655e 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -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 = '_';