summaryrefslogtreecommitdiff
path: root/svl/source/misc/PasswordHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/misc/PasswordHelper.cxx')
-rw-r--r--svl/source/misc/PasswordHelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/misc/PasswordHelper.cxx b/svl/source/misc/PasswordHelper.cxx
index 617aeafdae1b..047d0b09b88b 100644
--- a/svl/source/misc/PasswordHelper.cxx
+++ b/svl/source/misc/PasswordHelper.cxx
@@ -32,7 +32,7 @@ void SvPasswordHelper::GetHashPasswordSHA256(uno::Sequence<sal_Int8>& rPassHash,
reinterpret_cast<unsigned char const*>(tmp.getStr()), tmp.getLength(),
::comphelper::HashType::SHA256));
rPassHash.realloc(hash.size());
- ::std::copy(hash.begin(), hash.end(), rPassHash.begin());
+ ::std::copy(hash.begin(), hash.end(), rPassHash.getArray());
rtl_secureZeroMemory(const_cast<char *>(tmp.getStr()), tmp.getLength());
}
@@ -43,7 +43,7 @@ void SvPasswordHelper::GetHashPasswordSHA1UTF8(uno::Sequence<sal_Int8>& rPassHas
reinterpret_cast<unsigned char const*>(tmp.getStr()), tmp.getLength(),
::comphelper::HashType::SHA1));
rPassHash.realloc(hash.size());
- ::std::copy(hash.begin(), hash.end(), rPassHash.begin());
+ ::std::copy(hash.begin(), hash.end(), rPassHash.getArray());
rtl_secureZeroMemory(const_cast<char *>(tmp.getStr()), tmp.getLength());
}