Merge branch 'collectd-4.4'
[collectd.git] / src / irq.c
index 792ac34..9b7e618 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -132,9 +132,9 @@ static void irq_submit (unsigned int irq, counter_t value)
        vl.values = values;
        vl.values_len = 1;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname_g);
-       strcpy (vl.plugin, "irq");
-       strcpy (vl.type, "irq");
+       sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+       sstrncpy (vl.plugin, "irq", sizeof (vl.plugin));
+       sstrncpy (vl.type, "irq", sizeof (vl.type));
 
        status = ssnprintf (vl.type_instance, sizeof (vl.type_instance),
                        "%u", irq);