From cf3dc6051ca6af582c42647209e813081f5c6e60 Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Sat, 4 Nov 2017 18:15:50 +0100 Subject: [PATCH] Omit leading space in shortcut in GetFeatures --- firmware/fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/fsm.c b/firmware/fsm.c index 71b954bb2..cead638c6 100644 --- a/firmware/fsm.c +++ b/firmware/fsm.c @@ -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;