summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d409a21)
raw | patch | inline | side by side (parent: d409a21)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 15:52:48 +0000 (16:52 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 15:52:48 +0000 (16:52 +0100) |
This way the plugin behaves more like the SNMP plugin.
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index 74ef2e8e6afc2f289dfb5ffd02d553b4ecba5666..cc88c93480984dcfce343a412526c1546ae7965d 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
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,