[Libreoffice-commits] core.git: xmlsecurity/source
Julien Nabet
serval2412 at yahoo.fr
Sun Oct 23 15:21:00 UTC 2016
xmlsecurity/source/pdfio/pdfdocument.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f736c71dde8f4a84688b932b1531808d4c7cbd8c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Oct 23 16:12:43 2016 +0200
Blind fix to TBs
Change-Id: I74165378255e3c844ee7f91a5d4eb09a573784bd
Reviewed-on: https://gerrit.libreoffice.org/30179
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 6543734..753c308 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);
More information about the Libreoffice-commits
mailing list