X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fxmms.c;h=09786fc9282b6f01bd8568750b771e4f8df039ea;hb=068ae14b916aa298995433da83302032c5e57c76;hp=d6c1abc7668f041ba2360e8b9f42f927f91dbf72;hpb=2354eda94fa44c8bcb8e39b24b117e7937110224;p=collectd.git diff --git a/src/xmms.c b/src/xmms.c index d6c1abc7..09786fc9 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -37,9 +37,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 */