X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fxmms.c;fp=src%2Fxmms.c;h=01c7e0cfea9214cf536083614a2a9ac1b33129e8;hb=5f9ec13b946733ff4e1edf2d8e3b7a22311dd894;hp=d6c1abc7668f041ba2360e8b9f42f927f91dbf72;hpb=2354eda94fa44c8bcb8e39b24b117e7937110224;p=collectd.git diff --git a/src/xmms.c b/src/xmms.c index d6c1abc7..01c7e0cf 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -39,7 +39,7 @@ 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)); + sstrncpy (vl.type, type, sizeof (vl.type)); plugin_dispatch_values (&vl); } /* void cxmms_submit */