summaryrefslogtreecommitdiff
path: root/xpath.c
diff options
context:
space:
mode:
authorDavid Kilzer <ddkilzer@webkit.org>2016-05-13 15:13:17 +0800
committerDaniel Veillard <veillard@redhat.com>2016-05-23 15:01:07 +0800
commit4472c3a5a5b516aaf59b89be602fbce52756c3e9 (patch)
treeb83bf5b5475e109c76d7156783ae6acb8a3c2859 /xpath.c
parentbeca86e8c86984b967a6efa05a9653470253edda (diff)
downloadlibxml2-4472c3a5a5b516aaf59b89be602fbce52756c3e9.tar.gz
Fix some format string warnings with possible format string vulnerability
For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index 620e8144..113bce64 100644
--- a/xpath.c
+++ b/xpath.c
@@ -639,7 +639,7 @@ xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra)
xmlChar buf[200];
xmlStrPrintf(buf, 200,
- BAD_CAST "Memory allocation failed : %s\n",
+ "Memory allocation failed : %s\n",
extra);
ctxt->lastError.message = (char *) xmlStrdup(buf);
} else {