1 --- libxml-1.8.17/debugXML.c~ 2000-06-28 18:33:46.000000000 +0000
2 +++ libxml-1.8.17/debugXML.c 2015-01-04 09:40:07.436759762 +0000
4 shift[2 * i] = shift[2 * i + 1] = ' ';
5 shift[2 * i] = shift[2 * i + 1] = 0;
7 - fprintf(output, shift);
8 + fprintf(output, "%s", shift);
9 if (ns->type == XML_GLOBAL_NAMESPACE)
10 fprintf(output, "old ");
11 if (ns->prefix != NULL)
13 shift[2 * i] = shift[2 * i + 1] = ' ';
14 shift[2 * i] = shift[2 * i + 1] = 0;
16 - fprintf(output, shift);
17 + fprintf(output, "%s", shift);
19 case XML_INTERNAL_GENERAL_ENTITY:
20 fprintf(output, "INTERNAL_GENERAL_ENTITY ");
23 fprintf(output, "%s\n", ent->name);
24 if (ent->ExternalID) {
25 - fprintf(output, shift);
26 + fprintf(output, "%s", shift);
27 fprintf(output, "ExternalID=%s\n", ent->ExternalID);
30 - fprintf(output, shift);
31 + fprintf(output, "%s", shift);
32 fprintf(output, "SystemID=%s\n", ent->SystemID);
35 - fprintf(output, shift);
36 + fprintf(output, "%s", shift);
37 fprintf(output, "content=");
38 xmlDebugDumpString(output, ent->content);
39 fprintf(output, "\n");
41 shift[2 * i] = shift[2 * i + 1] = ' ';
42 shift[2 * i] = shift[2 * i + 1] = 0;
44 - fprintf(output, shift);
45 + fprintf(output, "%s", shift);
46 fprintf(output, "ATTRIBUTE %s\n", attr->name);
47 if (attr->val != NULL)
48 xmlDebugDumpNodeList(output, attr->val, depth + 1);
50 shift[2 * i] = shift[2 * i + 1] = ' ';
51 shift[2 * i] = shift[2 * i + 1] = 0;
53 - fprintf(output, shift);
54 + fprintf(output, "%s", shift);
56 case XML_ELEMENT_NODE:
57 fprintf(output, "ELEMENT ");
59 fprintf(output, "NODE_%d\n", node->type);
61 if (node->doc == NULL) {
62 - fprintf(output, shift);
63 + fprintf(output, "%s", shift);
64 fprintf(output, "doc == NULL !!!\n");
66 if (node->nsDef != NULL)
68 xmlDebugDumpAttrList(output, node->properties, depth + 1);
69 if (node->type != XML_ENTITY_REF_NODE) {
70 if (node->content != NULL) {
71 - fprintf(output, shift);
72 + fprintf(output, "%s", shift);
73 fprintf(output, "content=");
74 #ifndef XML_USE_BUFFER_CONTENT
75 xmlDebugDumpString(output, node->content);