From a1c0fb266cf3738f85e415f454c9d61de9ab5d9f Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Sat, 29 May 1999 17:08:53 +0000 Subject: [PATCH] fix match hdrs for filters --- mailnews/base/search/src/nsMsgSearchTerm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailnews/base/search/src/nsMsgSearchTerm.cpp b/mailnews/base/search/src/nsMsgSearchTerm.cpp index af338fea441..23b41fc5dc2 100644 --- a/mailnews/base/search/src/nsMsgSearchTerm.cpp +++ b/mailnews/base/search/src/nsMsgSearchTerm.cpp @@ -739,7 +739,7 @@ nsresult nsMsgSearchTerm::MatchString (nsString2 *stringToMatch, const char *cha { nsresult err = NS_COMFALSE; nsString2 n_str(eOneByte); - unsigned char* n_header = nsnull; + const char* n_header = nsnull; if(nsMsgSearchOpIsEmpty != m_operator) // Save some performance for opIsEmpty { #ifdef DO_I18N @@ -752,6 +752,7 @@ nsresult nsMsgSearchTerm::MatchString (nsString2 *stringToMatch, const char *cha NS_ASSERTION(n_str, "failed get normalized string"); NS_ASSERTION(n_header, "failed get normalized header"); #else + n_header = stringToMatch->GetBuffer() ; n_str = m_value.u.string; #endif // DO_I18N }