mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
* 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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user