diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 21:01:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 21:02:11 +0200 |
commit | 34e951bd7284d2e771c279e3adc3899d191fdad0 (patch) | |
tree | 8a2aac81ae8b577397bdc4f6f54e21939dbdde16 /sfx2/source | |
parent | f58ee783eebf74108c1c1dd5f24e6abaa19c4f09 (diff) |
More OUString::copy out-of-bounds fixes
Change-Id: I45762d167d04252e32155a7b23a3290688bccdf6
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 0faf85372adc..a49d49b087c0 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -246,7 +246,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink, if( pLinkStr ) *pLinkStr = sRange; if( pFilter ) - *pFilter = sLNm.copy( nPos ); + *pFilter = nPos == -1 ? OUString() : sLNm.copy(nPos); if( pType ) { |