This commit is contained in:
cbiesinger%web.de 2005-07-05 12:57:41 +00:00
Родитель 9ec0a69fdf
Коммит 6e921b6927
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -245,7 +245,8 @@ nsConverterInputStream::Fill(nsresult * aErrorCode)
NS_ASSERTION(0 < mUnicharData->GetBufferSize() - mUnicharDataLength,
"Decoder returned an error but filled the output buffer! "
"Should not happen.");
mUnicharData->GetBuffer()[mUnicharDataLength++] = mReplacementChar;
mUnicharData->GetBuffer()[mUnicharDataLength++] =
PRUnichar(mReplacementChar);
++srcConsumed;
// XXX this is needed to make sure we don't underrun our buffer;
// bug 160784 again

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

@ -88,7 +88,7 @@ class nsConverterInputStream : public nsIConverterInputStream,
PRUint32 mLeftOverBytes;
PRUint32 mUnicharDataOffset;
PRUint32 mUnicharDataLength;
PRUnichar mReplacementChar;
PRUint32 mReplacementChar;
nsLineBuffer<PRUnichar>* mLineBuffer;
};