From 4a195ebd86874803a04c31724f4fc037c032d81b Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Thu, 26 May 2016 21:56:31 +0100 Subject: [PATCH] Don't include 0x in address display, so everything fits --- firmware/fsm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/firmware/fsm.c b/firmware/fsm.c index b2e3ef7dc2..e72e38a531 100644 --- a/firmware/fsm.c +++ b/firmware/fsm.c @@ -678,10 +678,8 @@ void fsm_msgEthereumGetAddress(EthereumGetAddress *msg) char desc[16]; strlcpy(desc, "Address:", sizeof(desc)); - char address[43]; - address[0] = '0'; - address[1] = 'x'; - data2hex(resp->address.bytes, 20, address + 2); + char address[41]; + data2hex(resp->address.bytes, 20, address); layoutAddress(address, desc); if (!protectButton(ButtonRequestType_ButtonRequest_Address, true)) {