diff --git a/src/apcups.c b/src/apcups.c
index 5a03764f59f5ea53bc1ac63cd549f183d22e40d1..7f8afd461e4cacd6f2eeadca5e2a282039ba79bd 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "apcups");
strcpy (vl.plugin_instance, "");
+ strncpy (vl.type, type, sizeof (vl.type));
strncpy (vl.type_instance, type_inst, sizeof (vl.type_instance));
- plugin_dispatch_values (type, &vl);
+ plugin_dispatch_values (&vl);
}
static void apc_submit (struct apc_detail_s *apcups_detail)