diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 11:55:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 11:55:14 +0000 |
commit | 2b7d8a50fe9f47d64af959aa170e47cb5c8ae5d4 (patch) | |
tree | 6b65dd5e586432557aed27998d1e48dad2761857 /sfx2 | |
parent | 57ec4a841a9bb5c0db2f6eeb7aa5a6bde98de008 (diff) |
longparas: stop tuncating large html files
Change-Id: I0ad9422d574c8629953fd95f0d334617c042c60f
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/sfxhtml.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx index bde886527a2c..8c903b8d5848 100644 --- a/sfx2/source/bastyp/sfxhtml.cxx +++ b/sfx2/source/bastyp/sfxhtml.cxx @@ -248,12 +248,7 @@ sal_Bool SfxHTMLParser::FinishFileDownload( OUString& rStr ) aStream << *pStream; aStream.Seek( STREAM_SEEK_TO_END ); - DBG_ASSERT( aStream.Tell() < STRING_MAXLEN, - "File too long for a string, cut off the end" ); - xub_StrLen nLen = aStream.Tell() < STRING_MAXLEN - ? (xub_StrLen)aStream.Tell() - : STRING_MAXLEN; - + sal_Size nLen = aStream.Tell(); aStream.Seek( 0 ); OString sBuffer = read_uInt8s_ToOString(aStream, nLen); rStr = OStringToOUString( sBuffer, RTL_TEXTENCODING_UTF8 ); |