From ba7e9af4584390be02144473bd432c5998ed4066 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 12 Sep 2012 22:51:58 +0200 Subject: [PATCH] src/utils_db_query.c: Use the right field when checking for size. --- src/utils_db_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {{{ */ -- 2.11.0