fixed ABW in nsTagStack and updated to string2 API

This commit is contained in:
rickg@netscape.com
1999-05-02 00:37:25 +00:00
parent 5564523f18
commit 101270bec1
6 changed files with 14 additions and 20 deletions
+1 -1
View File
@@ -487,7 +487,7 @@ void nsHTMLToTXTSinkStream::UnicodeToTXTString(const nsString& aSrc)
bufferLength = mBufferSize;
mUnicodeEncoder->Reset();
result = mUnicodeEncoder->Convert(aSrc, &length, mBuffer, &bufferLength);
result = mUnicodeEncoder->Convert(aSrc.GetUnicode(), &length, mBuffer, &bufferLength);
mBuffer[bufferLength] = 0;
PRInt32 temp = bufferLength;
if (NS_SUCCEEDED(result))