diff options
Diffstat (limited to 'sot/source/sdstor/storinfo.cxx')
-rw-r--r-- | sot/source/sdstor/storinfo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx index d1ea728ec4d4..bfcd21410c49 100644 --- a/sot/source/sdstor/storinfo.cxx +++ b/sot/source/sdstor/storinfo.cxx @@ -36,7 +36,7 @@ SotClipboardFormatId ReadClipboardFormat( SvStream & rStm ) { // get a string name std::unique_ptr<sal_Char[]> p(new( ::std::nothrow ) sal_Char[ nLen ]); - if( p && rStm.Read( p.get(), nLen ) == (sal_uLong) nLen ) + if (p && rStm.ReadBytes(p.get(), nLen) == static_cast<sal_Size>(nLen)) { nFormat = SotExchange::RegisterFormatName(OUString(p.get(), nLen-1, RTL_TEXTENCODING_ASCII_US)); } |