X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fswap.c;h=4f0a0ba945459c9dab443412d955e60158ebfde8;hb=cacaa2126020832df99fa6423147bd3de6d4faae;hp=e91ebefd916ae1439738661c336915ee5980a5ac;hpb=d22aee658210cbfa44caa39f302aa9331d4eab82;p=collectd.git diff --git a/src/swap.c b/src/swap.c index e91ebefd..4f0a0ba9 100644 --- a/src/swap.c +++ b/src/swap.c @@ -126,9 +126,10 @@ static void swap_submit (const char *type_instance, double value) vl.time = time (NULL); strcpy (vl.host, hostname_g); strcpy (vl.plugin, "swap"); - strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); + strcpy (vl.type, "swap"); + sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); - plugin_dispatch_values ("swap", &vl); + plugin_dispatch_values (&vl); } /* void swap_submit */ static int swap_read (void)