diff --git a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp index 667f04dc986..816aff1162f 100644 --- a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -469,7 +469,7 @@ void nsHTMLContentSinkStream::Write(const nsString& aString) if (mUnicodeEncoder) { EncodeToBuffer(aString); - out.write(mBuffer, mBuffer.Length()); + out.write(&mBuffer, mBuffer.Length()); } // else just write the unicode else diff --git a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index 667f04dc986..816aff1162f 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -469,7 +469,7 @@ void nsHTMLContentSinkStream::Write(const nsString& aString) if (mUnicodeEncoder) { EncodeToBuffer(aString); - out.write(mBuffer, mBuffer.Length()); + out.write(&mBuffer, mBuffer.Length()); } // else just write the unicode else