Code

collectd-threshold(5): Correct the description of the "Interesting" config option.
[collectd.git] / src / xmms.c
index d6c1abc7668f041ba2360e8b9f42f927f91dbf72..52beb65f8a5d21d32880f81a58be887363390873 100644 (file)
@@ -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 */