Code

Unified string handling.
[collectd.git] / src / mbmon.c
index e223b95c4be158b23249efb6b7e06967ac0b821b..923118f62ceb486f88dcbbc0c363639e6360f681 100644 (file)
@@ -230,8 +230,8 @@ static void mbmon_submit (const char *type, const char *type_instance,
        vl.time = time (NULL);
        strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "mbmon");
-       strncpy (vl.type, type, sizeof (vl.type));
-       strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
+       sstrncpy (vl.type, type, sizeof (vl.type));
+       sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
 
        plugin_dispatch_values (&vl);
 } /* void mbmon_submit */