diff options
Diffstat (limited to 'registry/source')
-rw-r--r-- | registry/source/keyimpl.cxx | 3 | ||||
-rw-r--r-- | registry/source/regimpl.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index d969cbaa32c5..d7baabe008da 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -970,7 +970,8 @@ OStoreDirectory ORegKey::getStoreDir() const OUString ORegKey::getFullPath(OUString const & path) const { OSL_ASSERT(!m_name.isEmpty() && !path.isEmpty()); - OUStringBuffer b(m_name); + OUStringBuffer b(32); + b.append(m_name); if (!b.isEmpty() && b[b.getLength() - 1] == '/') { if (path[0] == '/') { b.append(std::u16string_view(path).substr(1)); diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index ab7dcb09888e..43e12cb8f375 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -629,7 +629,7 @@ RegError ORegistry::createKey(RegKeyHandle hKey, const OUString& keyName, } OStoreDirectory rStoreDir; - OUStringBuffer sFullPath(sFullKeyName.getLength()); + OUStringBuffer sFullPath(sFullKeyName.getLength()+16); OUString token; sFullPath.append('/'); |