X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=986efafbb8e77a5d19debbfa0b634cbec230ffdc;hb=4027126a75439c7d2b1d5572092fd291ef19ead6;hp=792ac346fa83c3e0ac9df24c1844c2e0325e0d79;hpb=6b49eec15d421a74935fb1165c3e9fdb80ca838e;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 792ac346..986efafb 100644 --- a/src/irq.c +++ b/src/irq.c @@ -131,10 +131,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);