[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Oct 2 04:49:09 PDT 2013


 sw/source/ui/docvw/edtwin2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b5683734bd60e6a2e48f1c6d7406062d8f63dd7c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Oct 2 13:46:00 2013 +0200

    SwEditWin::RequestHelp: out of bounds substring access
    
    Fix conversion from bcc8e86a1e2e4d7067c0d8320b4bdec9f1d2a2da
    
    Change-Id: Ie169752a9ed6b4fa32e886352c80af60a07976dc

diff --git a/sw/source/ui/docvw/edtwin2.cxx b/sw/source/ui/docvw/edtwin2.cxx
index 0ba2eb7..6ff0131 100644
--- a/sw/source/ui/docvw/edtwin2.cxx
+++ b/sw/source/ui/docvw/edtwin2.cxx
@@ -181,7 +181,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
                 // #i104300#
                 // special handling if target is a cross-reference bookmark
                 {
-                    String sTmpSearchStr = sTxt.copy( 1, sTxt.getLength() );
+                    String sTmpSearchStr = sTxt.copy( 1 );
                     IDocumentMarkAccess* const pMarkAccess =
                                                 rSh.getIDocumentMarkAccess();
                     IDocumentMarkAccess::const_iterator_t ppBkmk =


More information about the Libreoffice-commits mailing list