Unified string handling.
[collectd.git] / src / xmms.c
index d6c1abc..01c7e0c 100644 (file)
@@ -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 */