df plugin: Fix a typo.
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 2 Oct 2009 06:27:44 +0000 (08:27 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 2 Oct 2009 06:27:44 +0000 (08:27 +0200)
src/df.c

index 2c59b01..ce1ef10 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -127,7 +127,7 @@ static void df_submit (char *df_name,
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "df", sizeof (vl.plugin));
        sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
-       sstrncpy (vl.type, "df", sizeof (vl.host));
+       sstrncpy (vl.type, "df", sizeof (vl.type));
        sstrncpy (vl.type_instance, df_name, sizeof (vl.type_instance));
 
        plugin_dispatch_values (&vl);