changeset 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 a33d6d189591
children f0b6f924014b
files src/buddy_chat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);