X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmbmon.c;h=923118f62ceb486f88dcbbc0c363639e6360f681;hb=5f6cbebb5f47e7605777baed71cede3207666437;hp=50d7363268840771f6d7ff30d85ae58e252bc7ec;hpb=d299004e0852c5fb02ed85393544fe6a06b231ca;p=collectd.git diff --git a/src/mbmon.c b/src/mbmon.c index 50d73632..923118f6 100644 --- a/src/mbmon.c +++ b/src/mbmon.c @@ -230,9 +230,10 @@ 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_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 (type, &vl); + plugin_dispatch_values (&vl); } /* void mbmon_submit */ /* Trim trailing whitespace from a string. */