From 02040421cbd1f2716f2f0bbf7077c8f384309afb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 18 May 2015 13:37:44 +0200 Subject: [PATCH] fix param order in memset --- firmware/fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;