summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1998-11-04 20:07:05 +0000
committerDaniel Veillard <veillard@src.gnome.org>1998-11-04 20:07:05 +0000
commitda4d3c42faed81ea760d1553f0ae5767dab8a0c6 (patch)
tree73b06b3b0ca1cb33941f4b89118604b237c70c14 /entities.c
parent442321cef216da79c1fcaff8238542ed87984d7e (diff)
downloadlibxml2-da4d3c42faed81ea760d1553f0ae5767dab8a0c6.tar.gz
Update of libtool files, use of HAVE_SNPRINTF, Daniel.
Diffstat (limited to 'entities.c')
-rw-r--r--entities.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/entities.c b/entities.c
index fc9543c0..07761171 100644
--- a/entities.c
+++ b/entities.c
@@ -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