X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=9b7e61877d8c62bafc009e91e1f792c43024e63e;hb=92445ff3363441d0f515de4a3ab92a504cfc0366;hp=792ac346fa83c3e0ac9df24c1844c2e0325e0d79;hpb=47faf00c18402cefd0e195d63ad48d5e7e6a4a92;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 792ac346..9b7e6187 100644 --- 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);