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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user