1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

Omit leading space in shortcut in GetFeatures

This commit is contained in:
Jochen Hoenicke 2017-11-04 18:15:50 +01:00 committed by Pavol Rusnak
parent 1566631023
commit cf3dc6051c

View File

@ -242,7 +242,7 @@ void fsm_msgGetFeatures(GetFeatures *msg)
}
if (coins[i].coin_shortcut) {
resp->coins[i].has_coin_shortcut = true;
strlcpy(resp->coins[i].coin_shortcut, coins[i].coin_shortcut, sizeof(resp->coins[i].coin_shortcut));
strlcpy(resp->coins[i].coin_shortcut, coins[i].coin_shortcut + 1, sizeof(resp->coins[i].coin_shortcut));
}
resp->coins[i].has_address_type = coins[i].has_address_type;
resp->coins[i].address_type = coins[i].address_type;