Mercurial > pidgin
diff src/buddy_chat.c @ 3944:9650e17d1276
[gaim-migrate @ 4123]
will still fix the jabber hilight weirdness (thanks faceprint)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 11 Nov 2002 20:57:30 +0000 |
parents | 30f52e7afd1d |
children | f118d61fb89a |
line wrap: on
line diff
--- a/src/buddy_chat.c Mon Nov 11 15:22:56 2002 +0000 +++ b/src/buddy_chat.c Mon Nov 11 20:57:30 2002 +0000 @@ -684,7 +684,7 @@ n = strlen(who); g_strdown(who); - if ((p = strstr(msg, who)) != NULL) { + if (n > 0 && (p = strstr(msg, who)) != NULL) { if (((p == msg) || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { g_free(who); g_free(msg);