summaryrefslogtreecommitdiff
path: root/starmath/source/smdetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/smdetect.cxx')
-rw-r--r--starmath/source/smdetect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index c16e4ded7ea0..058f387124b2 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -96,7 +96,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
aBuffer[nBufferSize] = 0;
pInStrm->Seek( STREAM_SEEK_TO_BEGIN );
pInStrm->StartReadingUnicodeText( RTL_TEXTENCODING_DONTKNOW ); // avoid BOM marker
- sal_uLong nBytesRead = pInStrm->Read( aBuffer, nBufferSize );
+ sal_uLong nBytesRead = pInStrm->ReadBytes( aBuffer, nBufferSize );
if (nBytesRead >= 6)
{
bool bIsMathType = false;