diff --git a/src/irq.c b/src/irq.c
index 9eb1de426b83bea8b7243f0c2e9c993de87fdb1c..93c6076ba0429396131650a90766f2f075938142 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "irq");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "irq", sizeof (vl.plugin));
status = snprintf (vl.type_instance, sizeof (vl.type_instance),
"%u", irq);