]>
Commit | Line | Data |
---|---|---|
1dd6f1ef JR |
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 | |
3 | @@ -46,7 +46,7 @@ | |
4 | shift[2 * i] = shift[2 * i + 1] = ' '; | |
5 | shift[2 * i] = shift[2 * i + 1] = 0; | |
6 | ||
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) | |
12 | @@ -73,7 +73,7 @@ | |
13 | shift[2 * i] = shift[2 * i + 1] = ' '; | |
14 | shift[2 * i] = shift[2 * i + 1] = 0; | |
15 | ||
16 | - fprintf(output, shift); | |
17 | + fprintf(output, "%s", shift); | |
18 | switch (ent->type) { | |
19 | case XML_INTERNAL_GENERAL_ENTITY: | |
20 | fprintf(output, "INTERNAL_GENERAL_ENTITY "); | |
21 | @@ -95,15 +95,15 @@ | |
22 | } | |
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); | |
28 | } | |
29 | if (ent->SystemID) { | |
30 | - fprintf(output, shift); | |
31 | + fprintf(output, "%s", shift); | |
32 | fprintf(output, "SystemID=%s\n", ent->SystemID); | |
33 | } | |
34 | if (ent->content) { | |
35 | - fprintf(output, shift); | |
36 | + fprintf(output, "%s", shift); | |
37 | fprintf(output, "content="); | |
38 | xmlDebugDumpString(output, ent->content); | |
39 | fprintf(output, "\n"); | |
40 | @@ -118,7 +118,7 @@ | |
41 | shift[2 * i] = shift[2 * i + 1] = ' '; | |
42 | shift[2 * i] = shift[2 * i + 1] = 0; | |
43 | ||
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); | |
49 | @@ -139,7 +139,7 @@ | |
50 | shift[2 * i] = shift[2 * i + 1] = ' '; | |
51 | shift[2 * i] = shift[2 * i + 1] = 0; | |
52 | ||
53 | - fprintf(output, shift); | |
54 | + fprintf(output, "%s", shift); | |
55 | switch (node->type) { | |
56 | case XML_ELEMENT_NODE: | |
57 | fprintf(output, "ELEMENT "); | |
58 | @@ -186,7 +186,7 @@ | |
59 | fprintf(output, "NODE_%d\n", node->type); | |
60 | } | |
61 | if (node->doc == NULL) { | |
62 | - fprintf(output, shift); | |
63 | + fprintf(output, "%s", shift); | |
64 | fprintf(output, "doc == NULL !!!\n"); | |
65 | } | |
66 | if (node->nsDef != NULL) | |
67 | @@ -195,7 +195,7 @@ | |
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); |