mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
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:
parent
75d8da9f69
commit
7cb77d3fad
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user