sfx2/source/appl/linkmgr2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ff2dd7942e42476432c2db08da71d85be7a14075
Author: Caolán McNamara <caol...@redhat.com>
Date:   Tue Jun 16 16:43:15 2015 +0100

    crash on use of 'echo hello' as dde command in insert section
    
    Change-Id: Ic46be8ac6da04663096e682d17faa214b324e8bf

diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index c77ee19..164742b 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -272,7 +272,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink,
                     if( pFile )
                         *pFile = sTopic;
                     if( pLinkStr )
-                        *pLinkStr = sCmd.copy( nTmp );
+                        *pLinkStr = nTmp != -1 ? sCmd.copy(nTmp) : OUString();
                     bRet = true;
                 }
                 break;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to