diff --git a/src/interface.c b/src/interface.c
index ff4a0aa1f1af35afda0e82e156348eb7d44338ab..806a336dfde09c814c9ab9f204e5770758251893 100644 (file)
--- a/src/interface.c
+++ b/src/interface.c
vl.values = values;
vl.values_len = 2;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "interface");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "interface", sizeof (vl.plugin));
sstrncpy (vl.type, type, sizeof (vl.type));
sstrncpy (vl.type_instance, dev, sizeof (vl.type_instance));