diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1998-11-04 20:07:05 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1998-11-04 20:07:05 +0000 |
commit | da4d3c42faed81ea760d1553f0ae5767dab8a0c6 (patch) | |
tree | 73b06b3b0ca1cb33941f4b89118604b237c70c14 /entities.c | |
parent | 442321cef216da79c1fcaff8238542ed87984d7e (diff) | |
download | libxml2-da4d3c42faed81ea760d1553f0ae5767dab8a0c6.tar.gz |
Update of libtool files, use of HAVE_SNPRINTF, Daniel.
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |