summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2019-11-13 21:00:02 +0100
committerGitHub <noreply@github.com>2019-11-13 21:00:02 +0100
commitebb30cbefbb350001b002243ed4286965e804cea (patch)
treee206b0fb3fdc06d9ca45ac8fc2d2f3d9a0b705b2 /src
parentMerge pull request #3103 from lioncash/cfunc (diff)
parentxts_archive: Remove redundant std::string constructor (diff)
downloadyuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.gz
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.bz2
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.lz
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.xz
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.zst
yuzu-ebb30cbefbb350001b002243ed4286965e804cea.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/xts_archive.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp
index 4bc5cb2ee..f5f8b91c9 100644
--- a/src/core/file_sys/xts_archive.cpp
+++ b/src/core/file_sys/xts_archive.cpp
@@ -93,8 +93,7 @@ Loader::ResultStatus NAX::Parse(std::string_view path) {
std::size_t i = 0;
for (; i < sd_keys.size(); ++i) {
std::array<Core::Crypto::Key128, 2> nax_keys{};
- if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, std::string(path).c_str(),
- path.size())) {
+ if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, path.data(), path.size())) {
return Loader::ResultStatus::ErrorNAXKeyHMACFailed;
}