diff --git a/src/mbmon.c b/src/mbmon.c
index 923118f62ceb486f88dcbbc0c363639e6360f681..859714c2782f28d42d42cd401fea017259187ea8 100644 (file)
--- a/src/mbmon.c
+++ b/src/mbmon.c
vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "mbmon");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "mbmon", sizeof (vl.plugin));
sstrncpy (vl.type, type, sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));