aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-15 12:06:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-15 12:06:36 +0000
commitd3d067280e88b0e5a976ad431c13320311a7a770 (patch)
tree9875798a0ff259a225463daf670671110ccc28e1 /debugXML.c
parentecb6f5bda5f319efe726165833b33b953a09f4a5 (diff)
downloadandroid_external_libxml2-d3d067280e88b0e5a976ad431c13320311a7a770.tar.gz
android_external_libxml2-d3d067280e88b0e5a976ad431c13320311a7a770.tar.bz2
android_external_libxml2-d3d067280e88b0e5a976ad431c13320311a7a770.zip
deprecate the non-boundchecking Sprintf functions, add Snprintf this
* include/libxml/valid.h debugXML.c valid.c: deprecate the non-boundchecking Sprintf functions, add Snprintf this should close bug #57984 Daniel
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugXML.c b/debugXML.c
index ddf9657c..83a4d9d1 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -264,7 +264,7 @@ xmlDebugDumpElemDecl(FILE *output, xmlElementPtr elem, int depth) {
char buf[5001];
buf[0] = 0;
- xmlSprintfElementContent(buf, elem->content, 1);
+ xmlSnprintfElementContent(buf, 5000, elem->content, 1);
buf[5000] = 0;
fprintf(output, "%s", buf);
}