projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
filecount plugin: s/\<strncpy\>/sstrncpy/g
[collectd.git]
/
src
/
filecount.c
diff --git
a/src/filecount.c
b/src/filecount.c
index
30de5a2
..
55b3655
100644
(file)
--- 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));
+ s
s
trncpy (buffer, str, sizeof (buffer));
for (ptr = buffer; *ptr != 0; ptr++)
if (*ptr == '/')
*ptr = '_';