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

Update of libtool files, use of HAVE_SNPRINTF, Daniel.

This commit is contained in:
Daniel Veillard
1998-11-04 20:07:05 +00:00
parent 442321cef2
commit da4d3c42fa
7 changed files with 1146 additions and 756 deletions

View File

@ -312,7 +312,11 @@ CHAR *xmlEncodeEntities(xmlDocPtr doc, const CHAR *input) {
#ifndef USE_UTF_8
} else if ((sizeof(CHAR) == 1) && (*cur >= 0x80)) {
char buf[10], *ptr;
g_snprintf(buf, 9, "&#%d;", *cur);
#ifdef HAVE_SNPRINTF
snprintf(buf, 9, "&#%d;", *cur);
#else
sprintf(buf, "&#%d;", *cur);
#endif
ptr = buf;
while (*ptr != 0) *out++ = *ptr++;
#endif