From cb3c1c62271e4ef356ef179fd997c1a422f16403 Mon Sep 17 00:00:00 2001 From: Alessandro Iurlano Date: Thu, 28 Aug 2008 21:16:17 +0200 Subject: [PATCH] filecount plugin: s/\/sstrncpy/g --- src/filecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '_'; -- 2.30.2