From: Florian Forster Date: Wed, 12 Sep 2012 20:51:58 +0000 (+0200) Subject: src/utils_db_query.c: Use the right field when checking for size. X-Git-Tag: collectd-5.0.5~4^2~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ba7e9af4584390be02144473bd432c5998ed4066;p=collectd.git src/utils_db_query.c: Use the right field when checking for size. --- diff --git a/src/utils_db_query.c b/src/utils_db_query.c index 7d594d81..c014daaf 100644 --- a/src/utils_db_query.c +++ b/src/utils_db_query.c @@ -235,7 +235,7 @@ static int udb_legacy_result_handle_result (udb_result_t *r, /* {{{ */ sstrncpy (vl.host, q_area->host, sizeof (vl.host)); sstrncpy (vl.plugin, q_area->plugin, sizeof (vl.plugin)); - sstrncpy (vl.plugin_instance, q_area->db_name, sizeof (vl.type_instance)); + sstrncpy (vl.plugin_instance, q_area->db_name, sizeof (vl.plugin_instance)); sstrncpy (vl.type, r->type, sizeof (vl.type)); if (r->instance_prefix != NULL) @@ -398,7 +398,7 @@ static int udb_result_submit (udb_result_t *r, /* {{{ */ sstrncpy (vl.host, q_area->host, sizeof (vl.host)); sstrncpy (vl.plugin, q_area->plugin, sizeof (vl.plugin)); - sstrncpy (vl.plugin_instance, q_area->db_name, sizeof (vl.type_instance)); + sstrncpy (vl.plugin_instance, q_area->db_name, sizeof (vl.plugin_instance)); sstrncpy (vl.type, r->type, sizeof (vl.type)); /* Set vl.type_instance {{{ */