aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-06-04 11:22:45 +0200
committerDaniel Veillard <veillard@redhat.com>2009-06-04 11:22:45 +0200
commitbccae2d21038967f5d83109f27b925bcd4795602 (patch)
tree9e7c9026ee1ac8710c8e1322ef174b52d05a11e8 /debugXML.c
parent7dd7080ad70c59ab21514b741a47128eb424dd35 (diff)
downloadandroid_external_libxml2-bccae2d21038967f5d83109f27b925bcd4795602.tar.gz
android_external_libxml2-bccae2d21038967f5d83109f27b925bcd4795602.tar.bz2
android_external_libxml2-bccae2d21038967f5d83109f27b925bcd4795602.zip
* c14n.c debugXML.c doc/examples/io2.c parser.c schematron.c
valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string patch by Christian Persch, fixes #581612
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/debugXML.c b/debugXML.c
index de6fd6c7..b56651b0 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -141,9 +141,9 @@ xmlCtxtDumpSpaces(xmlDebugCtxtPtr ctxt)
return;
if ((ctxt->output != NULL) && (ctxt->depth > 0)) {
if (ctxt->depth < 50)
- fprintf(ctxt->output, &ctxt->shift[100 - 2 * ctxt->depth]);
+ fprintf(ctxt->output, "%s", &ctxt->shift[100 - 2 * ctxt->depth]);
else
- fprintf(ctxt->output, ctxt->shift);
+ fprintf(ctxt->output, "%s", ctxt->shift);
}
}
@@ -162,7 +162,7 @@ xmlDebugErr(xmlDebugCtxtPtr ctxt, int error, const char *msg)
NULL, ctxt->node, XML_FROM_CHECK,
error, XML_ERR_ERROR, NULL, 0,
NULL, NULL, NULL, 0, 0,
- msg);
+ "%s", msg);
}
static void
xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra)