diff --git a/src/xmms.c b/src/xmms.c
index 01c7e0cfea9214cf536083614a2a9ac1b33129e8..52beb65f8a5d21d32880f81a58be887363390873 100644 (file)
--- a/src/xmms.c
+++ b/src/xmms.c
vl.values = values;
vl.values_len = 1;
vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "xmms");
+ 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);
sstrncpy (vl.type, type, sizeof (vl.type));
plugin_dispatch_values (&vl);