1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 11:39:03 +00:00

expand description of multisig label (#294)

This commit is contained in:
Wampum 2018-01-31 16:12:52 +00:00 committed by Pavol Rusnak
parent f853047f53
commit 2391beb6f4

View File

@ -771,15 +771,15 @@ void fsm_msgGetAddress(GetAddress *msg)
}
if (msg->has_show_display && msg->show_display) {
char desc[16];
char desc[20];
if (msg->has_multisig) {
strlcpy(desc, "Msig __ of __:", sizeof(desc));
strlcpy(desc, "Multisig __ of __:", sizeof(desc));
const uint32_t m = msg->multisig.m;
const uint32_t n = msg->multisig.pubkeys_count;
desc[5] = (m < 10) ? ' ': ('0' + (m / 10));
desc[6] = '0' + (m % 10);
desc[11] = (n < 10) ? ' ': ('0' + (n / 10));
desc[12] = '0' + (n % 10);
desc[9] = (m < 10) ? ' ': ('0' + (m / 10));
desc[10] = '0' + (m % 10);
desc[15] = (n < 10) ? ' ': ('0' + (n / 10));
desc[16] = '0' + (n % 10);
} else {
strlcpy(desc, _("Address:"), sizeof(desc));
}