From: Nathan W. <fac...@us...> - 2003-10-16 04:36:14
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv32009/src Modified Files: gtkimhtml.c Log Message: this fixes the { type entities Index: gtkimhtml.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v retrieving revision 1.201 retrieving revision 1.202 diff -u -d -p -r1.201 -r1.202 --- gtkimhtml.c 16 Oct 2003 04:17:25 -0000 1.201 +++ gtkimhtml.c 16 Oct 2003 04:35:41 -0000 1.202 @@ -757,7 +757,7 @@ gtk_imhtml_is_amp_escape (const gchar *s 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 @@ gtk_imhtml_is_amp_escape (const gchar *s 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)++; |