diff --git a/src/nginx.c b/src/nginx.c
index 3b107fb72ad209c41d08c22ded54fe349310d305..a95362be4f7fd58a29cf3d2db610b0f4f4e71e48 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "nginx");
strcpy (vl.plugin_instance, "");
+ strncpy (vl.type, type, sizeof (vl.type));
if (inst != NULL)
{
vl.type_instance[sizeof (vl.type_instance) - 1] = '\0';
}
- plugin_dispatch_values (type, &vl);
+ plugin_dispatch_values (&vl);
} /* void submit */
static int nginx_read (void)