X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fxmms.c;h=52beb65f8a5d21d32880f81a58be887363390873;hb=0742dc6da5074abaf3bb27c579de12460f7db690;hp=d6c1abc7668f041ba2360e8b9f42f927f91dbf72;hpb=2354eda94fa44c8bcb8e39b24b117e7937110224;p=collectd.git diff --git a/src/xmms.c b/src/xmms.c index d6c1abc7..52beb65f 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -36,10 +36,9 @@ 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"); - strncpy (vl.type, type, sizeof (vl.type)); + 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 (&vl); } /* void cxmms_submit */