X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Firq.c;h=93c6076ba0429396131650a90766f2f075938142;hb=4bc5568e749defb044160bb0cd80c5cb5fa3267c;hp=9eb1de426b83bea8b7243f0c2e9c993de87fdb1c;hpb=bec5a6dda77c05eae27e5aeecdf601e573090cc5;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 9eb1de42..93c6076b 100644 --- a/src/irq.c +++ b/src/irq.c @@ -132,8 +132,8 @@ 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"); + 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);