1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

package2: Use assignment instead of memcpy in decrypt_and_validate_header (#33)

This is more concise and also compiles (the previous code was missing an & on the source argument)
This commit is contained in:
Mat M 2018-02-22 23:31:13 -05:00 committed by SciresM
parent 7d777a0e59
commit 4131a61d00

View file

@ -307,7 +307,7 @@ uint32_t decrypt_and_validate_header(package2_header_t *header) {
memcpy(metadata.ctr, header->metadata.ctr, sizeof(header->metadata.ctr)); memcpy(metadata.ctr, header->metadata.ctr, sizeof(header->metadata.ctr));
/* See if this is the correct key. */ /* See if this is the correct key. */
if (validate_package2_metadata(&metadata)) { if (validate_package2_metadata(&metadata)) {
memcpy(&header->metadata, metadata, sizeof(package2_meta_t)); header->metadata = metadata;
break; break;
} }
} }