diff --git a/firmware/fsm.c b/firmware/fsm.c index 1d756f20b3..332733d5a5 100644 --- a/firmware/fsm.c +++ b/firmware/fsm.c @@ -795,8 +795,8 @@ void fsm_msgDecryptMessage(DecryptMessage *msg) if (display_only) { resp->has_address = false; resp->has_message = false; - memset(resp->address, sizeof(resp->address), 0); - memset(&(resp->message), sizeof(resp->message), 0); + memset(resp->address, 0, sizeof(resp->address)); + memset(&(resp->message), 0, sizeof(resp->message)); } else { resp->has_address = signing; resp->has_message = true;