From c3eb66c30aa507bec93af80c6ac1c4ce5eccd7f0 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Sat, 17 Jun 2006 01:08:20 +0000 Subject: [PATCH] fix searching on tags/keywords when the keyword isn't the first one on the message, sr=sspitzer 341432 --- mailnews/base/search/src/nsMsgSearchTerm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/base/search/src/nsMsgSearchTerm.cpp b/mailnews/base/search/src/nsMsgSearchTerm.cpp index 8a7e7d06192..7be326818c2 100644 --- a/mailnews/base/search/src/nsMsgSearchTerm.cpp +++ b/mailnews/base/search/src/nsMsgSearchTerm.cpp @@ -1361,7 +1361,7 @@ nsresult nsMsgSearchTerm::MatchKeyword(const char *keyword, PRBool *pResult) { const char *keywordLoc = PL_strstr(keyword, m_value.string); const char *startOfKeyword = keyword; - PRUint32 keywordLen = strlen(keyword); + PRUint32 keywordLen = strlen(m_value.string); while (keywordLoc) { // if the keyword is at the beginning of the string, then it's a match if