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

Julien Nabet serval2412 at yahoo.fr
Wed Apr 13 07:11:53 UTC 2016


 basic/source/sbx/sbxscan.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5304b948781e1f8a1bf5249a260db738e4113079
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Apr 13 00:21:48 2016 +0200

    Related tdf#99089: avoid second crash
    
    Second bt quoted in https://cgit.freedesktop.org/libreoffice/core/commit/?id=43109b751bf5fd36318de56b2fb686acc724673f
    wasn't solved, try to fix it now.
    
    Change-Id: I68484f9417ff0bf747306ac8774cad5fdf84b924
    Reviewed-on: https://gerrit.libreoffice.org/24042
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index f108946..3aac5c6 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -531,7 +531,7 @@ static sal_uInt16 printfmtstr( const OUString& rStr, OUString& rRes, const OUStr
             aTemp.append( *pStr ? *pStr++ : static_cast< sal_Unicode >(' '));
             pFmt++;
         }
-        while( *pFmt != '\\' );
+        while( *pFmt && *pFmt != '\\' );
         aTemp.append(*pStr ? *pStr++ : static_cast< sal_Unicode >(' '));
         pFmt++; break;
     case '&':


More information about the Libreoffice-commits mailing list