From cea1270777d0a5bd42284011307fe183a67f8ada Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 30 Apr 2009 16:07:43 +0200 Subject: Rewritten dmixml_GetXPathContent(...) and _get_key_value(...) This rewrite was to handle XPATH_NUMBER more correctly. Now these functions needs an preallocated memory buffer for the result. --- src/dmixml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dmixml.h') diff --git a/src/dmixml.h b/src/dmixml.h index 7176483..b1d86c6 100644 --- a/src/dmixml.h +++ b/src/dmixml.h @@ -38,6 +38,6 @@ char *dmixml_GetAttrValue(xmlNode *node, const char *key); xmlNode *dmixml_FindNode(xmlNode *, const char *key); inline char *dmixml_GetContent(xmlNode *node); inline char *dmixml_GetNodeContent(xmlNode *node, const char *key); -char *dmixml_GetXPathContent(xmlXPathObject *xpo, int idx); +char *dmixml_GetXPathContent(char *buf, size_t buflen, xmlXPathObject *xpo, int idx); #endif -- cgit