summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-11-04 18:13:38 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-11-04 18:13:38 +0000
commit442321cef216da79c1fcaff8238542ed87984d7e (patch)
tree0151b9baee293b545124131b78a63066b9d2c374 /entities.c
parent0ba4d5377c6c5bb904b73586a1468da58b31a911 (diff)
downloadlibxml2-442321cef216da79c1fcaff8238542ed87984d7e.tar.gz
Use g_snprintf insteda of snprintf.
1998-11-04 Miguel de Icaza <miguel@nuclecu.unam.mx> * entities.c: Use g_snprintf insteda of snprintf.
Diffstat (limited to 'entities.c')
-rw-r--r--entities.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/entities.c b/entities.c
index 2875cb59..fc9543c0 100644
--- a/entities.c
+++ b/entities.c
@@ -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