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

Use g_snprintf insteda of snprintf.

1998-11-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* entities.c: Use g_snprintf insteda of snprintf.
This commit is contained in:
Miguel de Icaza
1998-11-04 18:13:38 +00:00
committed by Arturo Espinosa
parent 0ba4d5377c
commit 442321cef2
4 changed files with 232 additions and 321 deletions

View File

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