diff --git a/stratosphere/ams_mitm/source/utils.cpp b/stratosphere/ams_mitm/source/utils.cpp index f38ff72ff..5e91fa3cd 100644 --- a/stratosphere/ams_mitm/source/utils.cpp +++ b/stratosphere/ams_mitm/source/utils.cpp @@ -708,7 +708,7 @@ void Utils::CreateBlankProdinfoIfNeeded() { u8 data[data_size]; - memset(&data, p ? g_cal0_backup[data_offset] : g_cal0_storage_backup[data_offset], data_size); + memcpy(&data, p ? g_cal0_backup[data_offset] : g_cal0_storage_backup[data_offset], data_size); u8 hash[0x20];