xmlsecurity/source/pdfio/pdfdocument.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 330b1d8b1e1eae9ec0a4504676c3518ca5d9a951
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Mon Oct 24 09:47:01 2016 +0000

    Revert "Blind fix to TBs"
    
    This reverts commit f736c71dde8f4a84688b932b1531808d4c7cbd8c.
    
    Change-Id: I83df90a5fc6cefb4e0c4fdbb37fa46a546809b83
    Reviewed-on: https://gerrit.libreoffice.org/30223
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx 
b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 2a5b70e..f63fe2e 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.capacity());
+    rStream.SeekRel(-1 * aBuf.size());
     size_t nBeforePeek = rStream.Tell();
     size_t nSize = rStream.ReadBytes(aBuf.data(), aBuf.size());
     rStream.Seek(nBeforePeek);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to