mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
fix param order in memset
This commit is contained in:
parent
72f2f5ced6
commit
02040421cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user