summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-02-09 17:41:59 -0500
committerLioncash <mathew1800@gmail.com>2021-02-09 17:42:02 -0500
commitd64ba587599d8086d82b01a8827d5839f3e3a902 (patch)
treebd22454cf0cd26ce3ec047e2216cf3b1f5022121
parent089608909254dfa4860705a29a6c33f6872d85a5 (diff)
nfp: Correct uninitialized size being used within GetTagInfo()
We were previously the name of the object being initialized within its own initializer, which results in uninitialized data being read.
-rw-r--r--src/core/hle/service/nfp/nfp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index 5d6d25696..2d1d4d67f 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -215,7 +215,7 @@ private:
const auto& amiibo = nfp_interface.GetAmiiboBuffer();
const TagInfo tag_info{
.uuid = amiibo.uuid,
- .uuid_length = static_cast<u8>(tag_info.uuid.size()),
+ .uuid_length = static_cast<u8>(amiibo.uuid.size()),
.padding_1 = {},
.protocol = 1, // TODO(ogniK): Figure out actual values
.tag_type = 2,