projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b7c3e4
)
filecount plugin: s/\<strncpy\>/sstrncpy/g
author
Alessandro Iurlano
<alessandro.iurlano@gmail.com>
Thu, 28 Aug 2008 19:16:17 +0000
(21:16 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 28 Aug 2008 19:16:17 +0000
(21:16 +0200)
src/filecount.c
patch
|
blob
|
history
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 = '_';