summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-10-27 21:56:10 -0400
committerGravatar Zach Hilman2018-10-27 21:56:10 -0400
commit1fa31cf74daadef8bd23d91f58438f998eab8a7b (patch)
tree779a4607de810561036e5f156ad1ca28578a7b63 /src/core/crypto/key_manager.cpp
parentMerge pull request #1533 from FernandoS27/lmem (diff)
downloadyuzu-1fa31cf74daadef8bd23d91f58438f998eab8a7b.tar.gz
yuzu-1fa31cf74daadef8bd23d91f58438f998eab8a7b.tar.xz
yuzu-1fa31cf74daadef8bd23d91f58438f998eab8a7b.zip
key_manager: Use isxdigit instead of isdigit when reading key file
Crypto revisions are hex numbers and this function only checks if the string is valid for stoul in base 16, so it should be isxdigit.
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index fefc3c747..89ae79eb3 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -395,7 +395,7 @@ static bool ValidCryptoRevisionString(std::string_view base, size_t begin, size_
395 if (base.size() < begin + length) 395 if (base.size() < begin + length)
396 return false; 396 return false;
397 return std::all_of(base.begin() + begin, base.begin() + begin + length, 397 return std::all_of(base.begin() + begin, base.begin() + begin + length,
398 [](u8 c) { return std::isdigit(c); }); 398 [](u8 c) { return std::isxdigit(c); });
399} 399}
400 400
401void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) { 401void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) {