diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-10-23 16:12:43 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-10-23 15:20:37 +0000 |
commit | f736c71dde8f4a84688b932b1531808d4c7cbd8c (patch) | |
tree | f7448f5b6365f2eb2052443dd01fa17311bda5f7 /xmlsecurity/source | |
parent | 8dc495c93239739629683bb29e4110f5c57c94f0 (diff) |
Blind fix to TBs
Change-Id: I74165378255e3c844ee7f91a5d4eb09a573784bd
Reviewed-on: https://gerrit.libreoffice.org/30179
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/pdfio/pdfdocument.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx index 6543734a6fb5..753c308fcfe9 100644 --- a/xmlsecurity/source/pdfio/pdfdocument.cxx +++ b/xmlsecurity/source/pdfio/pdfdocument.cxx @@ -775,7 +775,7 @@ size_t PDFDocument::FindStartXRef(SvStream& rStream) // Find the "startxref" token, somewhere near the end of the document. std::vector<char> aBuf(1024); rStream.Seek(STREAM_SEEK_TO_END); - rStream.SeekRel(-1 * aBuf.size()); + rStream.SeekRel(-1 * aBuf.capacity()); size_t nBeforePeek = rStream.Tell(); size_t nSize = rStream.ReadBytes(aBuf.data(), aBuf.size()); rStream.Seek(nBeforePeek); |