--- a/pidgin/gtkimhtml.c Wed Aug 24 15:05:10 2011 +0000 +++ b/pidgin/gtkimhtml.c Wed Aug 24 15:06:36 2011 +0000 @@ -5367,9 +5367,9 @@ tag = sl->data; /** don't worry about non-printing tags ending */ if (tag_ends_here(tag, &iter, &next_iter) && - strlen(tag_to_html_end(tag)) > 0 && - strlen(tag_to_html_start(tag)) > 0) { - + *tag_to_html_end(tag) && + *tag_to_html_start(tag)) + { PidginTextTagData *tmp; GQueue *r = g_queue_new();