X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fxmms.c;h=52beb65f8a5d21d32880f81a58be887363390873;hb=65121a18b0d01a120f0931776b1d552c9358f5c6;hp=1e646d21165722b289f6721dd672837e03b5b40c;hpb=9896b57523e7f64619660abadb4422ac96c5f8c8;p=collectd.git diff --git a/src/xmms.c b/src/xmms.c index 1e646d21..52beb65f 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -36,11 +36,11 @@ static void cxmms_submit (const char *type, gauge_t value) vl.values = values; vl.values_len = 1; - vl.time = time (NULL); - strcpy (vl.host, hostname_g); - strcpy (vl.plugin, "xmms"); + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + sstrncpy (vl.plugin, "xmms", sizeof (vl.plugin)); + sstrncpy (vl.type, type, sizeof (vl.type)); - plugin_dispatch_values (type, &vl); + plugin_dispatch_values (&vl); } /* void cxmms_submit */ int cxmms_read (void)