Mercurial > pidgin.yaz
changeset 7281:0f7dd6715a90
[gaim-migrate @ 7860]
this fixes the { type entities
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 16 Oct 2003 04:35:41 +0000 |
parents | f946af3b0039 |
children | ad243bc63184 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Thu Oct 16 04:17:25 2003 +0000 +++ b/src/gtkimhtml.c Thu Oct 16 04:35:41 2003 +0000 @@ -757,7 +757,7 @@ gchar **replace, gint *length) { - static char buf[3]; + static char buf[6]; g_return_val_if_fail (string != NULL, FALSE); g_return_val_if_fail (replace != NULL, FALSE); g_return_val_if_fail (length != NULL, FALSE); @@ -791,7 +791,7 @@ if ((sscanf (string, "&#%u;", £) == 1) && pound != 0) { if (*(string + 3 + (gint)log10 (pound)) != ';') return FALSE; - g_snprintf(buf, sizeof(buf), "%c", (gchar)pound); + g_unichar_to_utf8((gunichar)pound, buf); *replace = buf; *length = 2; while (isdigit ((gint) string [*length])) (*length)++;