summaryrefslogtreecommitdiff
path: root/registry/tools/reg2bin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/tools/reg2bin.cxx')
-rw-r--r--registry/tools/reg2bin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx
index 862289a07033..7e5001e05d26 100644
--- a/registry/tools/reg2bin.cxx
+++ b/registry/tools/reg2bin.cxx
@@ -975,7 +975,7 @@ sal_uInt64 writeNameNul(osl::File & file, rtl::OUString const & name) {
void writeNameLen(osl::File & file, rtl::OUString const & name) {
rtl::OString ascii(toAscii(name));
- write32(file, name.getLength());
+ write32(file, ascii.getLength());
write(file, ascii.getStr(), ascii.getLength());
}