summaryrefslogtreecommitdiff
path: root/test/source/htmltesttools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/htmltesttools.cxx')
-rw-r--r--test/source/htmltesttools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx
index f876dec101a2..f318edd21fe6 100644
--- a/test/source/htmltesttools.cxx
+++ b/test/source/htmltesttools.cxx
@@ -28,7 +28,7 @@ htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream)
{
sal_Size nSize = pStream->remainingSize();
std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize + 1]);
- pStream->Read(pBuffer.get(), nSize);
+ pStream->ReadBytes(pBuffer.get(), nSize);
pBuffer[nSize] = 0;
return htmlParseDoc(reinterpret_cast<xmlChar*>(pBuffer.get()), nullptr);
}