diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-28 07:34:03 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-28 07:34:03 +0200 |
commit | e3f7e0255539e1c30518ab8b71b3506451953743 (patch) | |
tree | 5def1b73abb4cdc0560596c8ec8f3e2fd9cfea9d /src/core/hle/service/nfc/common/device.cpp | |
parent | Merge pull request #11616 from t895/save-error (diff) | |
download | yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar.gz yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar.bz2 yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar.lz yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar.xz yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.tar.zst yuzu-e3f7e0255539e1c30518ab8b71b3506451953743.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfc/common/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp index 05951d8cb..68c407f81 100644 --- a/src/core/hle/service/nfc/common/device.cpp +++ b/src/core/hle/service/nfc/common/device.cpp @@ -1374,7 +1374,7 @@ NFP::AmiiboName NfcDevice::GetAmiiboName(const NFP::AmiiboSettings& settings) co // Convert from utf16 to utf8 const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data()); - memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size() - 1); + memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size()); return amiibo_name; } |