mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 03:45:42 +00:00
Fixed to pass char* to PR_smprintf() instead of PRUnichar* which is not recognized, bug 105704, r=naving, sr=alecf.
This commit is contained in:
parent
9f47fab274
commit
7acfb18cb2
@ -164,7 +164,7 @@ nsMsgSearchAdapter::GetImapCharsetParam(const PRUnichar *destCharset)
|
||||
|
||||
// Specify a character set unless we happen to be US-ASCII.
|
||||
if (nsCRT::strcmp(destCharset, NS_LITERAL_STRING("us-ascii").get()))
|
||||
result = PR_smprintf("%s%S", nsMsgSearchAdapter::m_kImapCharset, destCharset);
|
||||
result = PR_smprintf("%s%s", nsMsgSearchAdapter::m_kImapCharset, NS_ConvertUCS2toUTF8(destCharset).get());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user