From 383f8c0de0e2704a9d03df99b99a9ae7e81e044e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 11 Jan 2010 16:52:48 +0100 Subject: [PATCH] curl_xml plugin: Don't use a hyphen to separate instance prefix and value. This way the plugin behaves more like the SNMP plugin. --- src/curl_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curl_xml.c b/src/curl_xml.c index 74ef2e8e..cc88c934 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -402,7 +402,7 @@ static int cx_handle_instance_xpath (xmlXPathContextPtr xpath_ctx, /* {{{ */ if (xpath->instance_prefix != NULL) { if (instance_node != NULL) - ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s-%s", + ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s%s", xpath->instance_prefix, (char *) xmlNodeGetContent(instance_node->nodeTab[0])); else sstrncpy (vl->type_instance, xpath->instance_prefix, -- 2.30.2