summaryrefslogtreecommitdiff
path: root/desktop/source/migration/services/wordbookmigration.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/migration/services/wordbookmigration.cxx')
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index fa84fe35f36d..77b2ee68df42 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -123,7 +123,7 @@ bool IsUserWordbook( const OUString& rFile )
static sal_Size nVerOOo7Len = sal::static_int_cast< sal_Size >(strlen( pVerOOo7 ));
sal_Char pMagicHeader[MAX_HEADER_LENGTH];
pMagicHeader[ nVerOOo7Len ] = '\0';
- if ((pStream->Read(static_cast<void *>(pMagicHeader), nVerOOo7Len) == nVerOOo7Len))
+ if ((pStream->ReadBytes(static_cast<void *>(pMagicHeader), nVerOOo7Len) == nVerOOo7Len))
{
if ( !strcmp(pMagicHeader, pVerOOo7) )
bRet = true;
@@ -134,7 +134,7 @@ bool IsUserWordbook( const OUString& rFile )
pStream->ReadUInt16( nLen );
if ( nLen < MAX_HEADER_LENGTH )
{
- pStream->Read(pMagicHeader, nLen);
+ pStream->ReadBytes(pMagicHeader, nLen);
pMagicHeader[nLen] = '\0';
if ( !strcmp(pMagicHeader, "WBSWG2")
|| !strcmp(pMagicHeader, "WBSWG5")