diff --git a/src/tape.c b/src/tape.c
index 67750efc43868eb9134447447dbac7a4a44109e5..32b42965c55d5e31ca6a5e53f54554cd0842aa54 100644 (file)
--- a/src/tape.c
+++ b/src/tape.c
vl.values = values;
vl.values_len = 2;
- vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "tape");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "tape", sizeof (vl.plugin));
sstrncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
sstrncpy (vl.type, type, sizeof (vl.type));