Fixed possible accidental conversion memsize type to strict 32 bit

This commit is contained in:
Herman Semenov committed 2024-04-02 19:03:12 +03:00
1 parent 8aac45fec0
commit 9e126b5f00
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1533,7 +1533,7 @@ static Path GetSecretPath(const char *nameOfSecret) {
// name should be simple alphanumerics to avoid problems on Windows.
bool NativeSaveSecret(const char *nameOfSecret, const std::string &data) {
Path path = GetSecretPath(nameOfSecret);
if (!File::WriteDataToFile(false, data.data(), (unsigned int)data.size(), path)) {
if (!File::WriteDataToFile(false, data.data(), data.size(), path)) {
WARN_LOG(SYSTEM, "Failed to write secret '%s' to path '%s'", nameOfSecret, path.c_str());
return false;
}