config: Fix pointer arithmetic in config_upgrade_v10().

pull/25/head
Andrew Kozlik 5 years ago committed by Pavol Rusnak
parent 276cd4b44a
commit a7a9eab445
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -255,7 +255,7 @@ static secbool config_upgrade_v10(void)
// Erase newly added fields.
if (old_config_size != sizeof(Storage)) {
memzero(&config + old_config_size, sizeof(Storage) - old_config_size);
memzero((char*)&config + old_config_size, sizeof(Storage) - old_config_size);
}
const uint32_t FLASH_STORAGE_PINAREA = FLASH_META_START + 0x4000;

Loading…
Cancel
Save