Fix for a incorrect string length, changed to use converted string length intead of unicode length, bug 23418, r=mscott.

This commit is contained in:
nhotta%netscape.com 2000-09-14 19:49:28 +00:00
parent 75d8da9f69
commit 7cb77d3fad

View File

@ -1556,7 +1556,7 @@ nsSaveAsListener::OnStopRequest(nsIChannel* aChannel, nsISupports* aSupport,
rv = nsMsgI18NSaveAsCharset(TEXT_PLAIN, (const char *)nsAutoCString(nsMsgI18NFileSystemCharset()),
m_msgBuffer.GetUnicode(), &conBuf);
if ( NS_SUCCEEDED(rv) && (conBuf) )
conLength = m_msgBuffer.Length();
conLength = nsCRT::strlen(conBuf);
}
if ( (NS_SUCCEEDED(rv)) && (conBuf) )