Skip to content

Commit

Permalink
ntag.cpp: Use size of type instead of size of pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalistspz committed Sep 16, 2024
1 parent 338099c commit 7d83a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cafe/OS/libs/ntag/ntag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ namespace ntag
noftHeader->writeCount = _swapEndianU16(_swapEndianU16(noftHeader->writeCount) + 1);
}

memcpy(decryptedBuffer + 0x20, noftHeader, sizeof(noftHeader));
memcpy(decryptedBuffer + 0x20, noftHeader, sizeof(NTAGNoftHeader));
memcpy(decryptedBuffer + _swapEndianU16(rwHeader->offset), data, dataSize);

// Encrypt
Expand Down

0 comments on commit 7d83a1b

Please sign in to comment.