summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index f0c8162434d4..60d90faa9c6c 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -1383,7 +1383,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_
std::unique_ptr<sal_Unicode[]> value(new sal_Unicode[size]);
readString(aBuffer.data(), value.get(), size);
- OString uStr = OUStringToOString(value.get(), RTL_TEXTENCODING_UTF8);
+ OString uStr(value.get(), rtl_ustr_getLength(value.get()), RTL_TEXTENCODING_UTF8);
fprintf(stdout, "L\"%s\"\n", uStr.getStr());
}
break;
@@ -1498,7 +1498,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_
if (offset > 8)
fprintf(stdout, "%s ", indent);
- uStr = OUStringToOString(pValue, RTL_TEXTENCODING_UTF8);
+ uStr = OString(pValue, rtl_ustr_getLength(pValue), RTL_TEXTENCODING_UTF8);
fprintf(
stdout, "%lu = L\"%s\"\n",
sal::static_int_cast< unsigned long >(i),