diff --git a/src/email.c b/src/email.c
index 869b7c36aa620cff5f7ae2f2d806d79868084eea..50599c02e052544c4b0e65ebdee008864fe4e8b5 100644 (file)
--- a/src/email.c
+++ b/src/email.c
@@ -735,9 +735,10 @@ static void email_submit (const char *type, const char *type_instance, gauge_t v
vl.time = time (NULL);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "email");
+ strncpy (vl.type, type, sizeof (vl.type));
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
- plugin_dispatch_values (type, &vl);
+ plugin_dispatch_values (&vl);
} /* void email_submit */
/* Copy list l1 to list l2. l2 may partly exist already, but it is assumed