From ea2386b7ca141d0390b5f0c5ca7553aec62e316e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 7 May 2022 16:01:09 +0200 Subject: [PATCH] Drop excess +1 ...as identified by Noel in the comment at "tdf#148299 Don't unmotivatedly mess with spaces in file names" Change-Id: Ie118191ceb731ceef3ca92869a4fa8c05f5835e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133981 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/source/ui/dialog/uiregionsw.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index b13b641090ad..ec945dc6f8c3 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -77,7 +77,7 @@ OUString CollapseWhiteSpaces(const OUString& sName) { const sal_Int32 nLen = sName.getLength(); const sal_Unicode cRef = ' '; - OUStringBuffer aBuf(nLen+1); + OUStringBuffer aBuf(nLen); for (sal_Int32 i = 0; i