diff options
author | David Kilzer <ddkilzer@webkit.org> | 2016-05-13 15:13:17 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2016-05-23 15:01:07 +0800 |
commit | 4472c3a5a5b516aaf59b89be602fbce52756c3e9 (patch) | |
tree | b83bf5b5475e109c76d7156783ae6acb8a3c2859 /xmlstring.c | |
parent | beca86e8c86984b967a6efa05a9653470253edda (diff) | |
download | libxml2-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 'xmlstring.c')
-rw-r--r-- | xmlstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlstring.c b/xmlstring.c index 00287d4c..42e380fa 100644 --- a/xmlstring.c +++ b/xmlstring.c @@ -545,7 +545,7 @@ xmlStrcat(xmlChar *cur, const xmlChar *add) { * Returns the number of characters written to @buf or -1 if an error occurs. */ int XMLCDECL -xmlStrPrintf(xmlChar *buf, int len, const xmlChar *msg, ...) { +xmlStrPrintf(xmlChar *buf, int len, const char *msg, ...) { va_list args; int ret; @@ -573,7 +573,7 @@ xmlStrPrintf(xmlChar *buf, int len, const xmlChar *msg, ...) { * Returns the number of characters written to @buf or -1 if an error occurs. */ int -xmlStrVPrintf(xmlChar *buf, int len, const xmlChar *msg, va_list ap) { +xmlStrVPrintf(xmlChar *buf, int len, const char *msg, va_list ap) { int ret; if((buf == NULL) || (msg == NULL)) { |