X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fxmms.c;fp=src%2Fxmms.c;h=d6c1abc7668f041ba2360e8b9f42f927f91dbf72;hb=2354eda94fa44c8bcb8e39b24b117e7937110224;hp=1e646d21165722b289f6721dd672837e03b5b40c;hpb=409d90064967451241f5fcc672a26269142e1735;p=collectd.git diff --git a/src/xmms.c b/src/xmms.c index 1e646d21..d6c1abc7 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -39,8 +39,9 @@ static void cxmms_submit (const char *type, gauge_t value) vl.time = time (NULL); strcpy (vl.host, hostname_g); strcpy (vl.plugin, "xmms"); + strncpy (vl.type, type, sizeof (vl.type)); - plugin_dispatch_values (type, &vl); + plugin_dispatch_values (&vl); } /* void cxmms_submit */ int cxmms_read (void)