This commit is contained in:
cata%netscape.com 1999-09-02 19:54:39 +00:00
Родитель 65327d1dd8
Коммит 7754532498
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3802,7 +3802,7 @@ nsImapProtocol::CreateUtf7ConvertedString(const char * aSourceString,
if(NS_SUCCEEDED(res) && (nsnull != decoder))
{
PRInt32 srcLen = PL_strlen(aSourceString);
res = decoder->Length(aSourceString, 0, srcLen, &unicharLength);
res = decoder->GetMaxLength(aSourceString, srcLen, &unicharLength);
// temporary buffer to hold unicode string
unichars = new PRUnichar[unicharLength + 1];
if (unichars == nsnull)
@ -3877,7 +3877,7 @@ PRUnichar * nsImapProtocol::CreatePRUnicharStringFromUTF7(const char * aSourceSt
if(NS_SUCCEEDED(res) && (nsnull != decoder))
{
PRInt32 srcLen = PL_strlen(aSourceString);
res = decoder->Length(aSourceString, 0, srcLen, &unicharLength);
res = decoder->GetMaxLength(aSourceString, srcLen, &unicharLength);
// temporary buffer to hold unicode string
unichars = new PRUnichar[unicharLength + 1];
if (unichars == nsnull)