diff --git a/src/nfs.c b/src/nfs.c
index 34f01f43ecd2d0622cae93397e5ecdaa55acb0e6..e4d12e342a6e6b275b38b956c84ea93acceef465 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "nfs");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "nfs", sizeof (vl.plugin));
sstrncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
- strcpy (vl.type, "nfs_procedure");
+ sstrncpy (vl.type, "nfs_procedure", sizeof (vl.type));
for (i = 0; i < len; i++)
{