# HG changeset patch # User Christian Hammond # Date 1013380578 0 # Node ID f6c4f2187c08e159247a92b44afe366dc3c1c986 # Parent fa76b0156259ade08a10aec88c9c1230bdfa2963 [gaim-migrate @ 2967] Bye bye bug. There you go, Sean. committer: Tailor Script diff -r fa76b0156259 -r f6c4f2187c08 src/gtkimhtml.c --- a/src/gtkimhtml.c Thu Feb 07 01:44:05 2002 +0000 +++ b/src/gtkimhtml.c Sun Feb 10 22:36:18 2002 +0000 @@ -2345,9 +2345,10 @@ g_return_if_fail (GTK_IS_IMHTML (imhtml)); g_return_if_fail (bit != NULL); - if ( (bit->type == TYPE_TEXT) || + if ( ((bit->type == TYPE_TEXT) || ((bit->type == TYPE_SMILEY) && !imhtml->smileys) || - ((bit->type == TYPE_COMMENT) && imhtml->comments)) { + ((bit->type == TYPE_COMMENT) && imhtml->comments)) && + bit->text) { gchar *copy = g_strdup (bit->text); gint pos = 0; gboolean seenspace = FALSE; @@ -2764,7 +2765,7 @@ VALID_OPT_TAG ("H3"); if (!g_strncasecmp(string, "!--", strlen ("!--"))) { - gchar *e = strstr (string, "-->"); + gchar *e = strstr (string + strlen("!--"), "-->"); if (e) { *len = e - string + strlen ("-->"); *tag = g_strndup (string + strlen ("!--"), *len - strlen ("!---->"));