1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

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
This commit is contained in:
Daniel Veillard
2001-08-15 12:06:36 +00:00
parent ecb6f5bda5
commit d3d067280e
4 changed files with 95 additions and 31 deletions

View File

@ -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);
}