Code

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 2c59b01c63e7f5a5e65163f4e1278609fbec8a17..ce1ef107534a8963207d7384dca80e50ebeba275 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);