Skip to content
Snippets Groups Projects
Commit d64ba587 authored by Lioncash's avatar Lioncash
Browse files

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.
parent 08960890
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment