# HG changeset patch # User Nathan Walp # Date 1066278941 0 # Node ID 0f7dd6715a909aafa61caae7100447f4eedd2a69 # Parent f946af3b0039b98800a26aa0d15882118a9e0564 [gaim-migrate @ 7860] this fixes the { type entities committer: Tailor Script diff -r f946af3b0039 -r 0f7dd6715a90 src/gtkimhtml.c --- 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)++;