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:
committed by
Arturo Espinosa
parent
0ba4d5377c
commit
442321cef2
@ -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
|
||||
|
Reference in New Issue
Block a user