diff --git a/rust/rust_c/cbindgens/release/multi_coin.toml b/rust/rust_c/cbindgens/release/multi_coin.toml index b3323458c..f67e60d57 100644 --- a/rust/rust_c/cbindgens/release/multi_coin.toml +++ b/rust/rust_c/cbindgens/release/multi_coin.toml @@ -1,6 +1,6 @@ include_guard = "_LIBRUST_C_H" -after_includes = "#define BUILD_MULTI_COINS\n#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 128\n#define PATH_ITEM_MAX_LEN 32" +after_includes = "#define BUILD_MULTI_COINS\n#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 256\n#define PATH_ITEM_MAX_LEN 32" [defines] "feature = multi-coins" = "BUILD_MULTI_COINS" diff --git a/rust/rust_c/cbindgens/simulator/btc_only.toml b/rust/rust_c/cbindgens/simulator/btc_only.toml index 6a9706f98..468af5cbd 100644 --- a/rust/rust_c/cbindgens/simulator/btc_only.toml +++ b/rust/rust_c/cbindgens/simulator/btc_only.toml @@ -1,6 +1,6 @@ include_guard = "_LIBRUST_C_H" -after_includes = "#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 128\n#define PATH_ITEM_MAX_LEN 32" +after_includes = "#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 256\n#define PATH_ITEM_MAX_LEN 32" [defines] "feature = multi-coins" = "BUILD_MULTI_COINS" diff --git a/src/config/version.h b/src/config/version.h index be46aa756..1aafeb77c 100644 --- a/src/config/version.h +++ b/src/config/version.h @@ -7,7 +7,7 @@ #define SOFTWARE_VERSION_MAX_LEN (32) #define SOFTWARE_VERSION_MAJOR 1 #define SOFTWARE_VERSION_MINOR 7 -#define SOFTWARE_VERSION_BUILD 16 +#define SOFTWARE_VERSION_BUILD 17 #define SOFTWARE_VERSION_BETA 0 #define SOFTWARE_VERSION (SOFTWARE_VERSION_MAJOR * 10000 + SOFTWARE_VERSION_MINOR * 100 + SOFTWARE_VERSION_BUILD) diff --git a/src/ui/gui_assets/images_hash.txt b/src/ui/gui_assets/images_hash.txt index 823c18a8c..b23244798 100644 --- a/src/ui/gui_assets/images_hash.txt +++ b/src/ui/gui_assets/images_hash.txt @@ -1 +1 @@ -1520ba38448f23027c73aa6aac2ab4ad +35baef8730e9f010da7681c882e6fc80 \ No newline at end of file diff --git a/src/ui/gui_widgets/general/gui_standard_receive_widgets.c b/src/ui/gui_widgets/general/gui_standard_receive_widgets.c index 753f9c4b8..c93d0bd53 100644 --- a/src/ui/gui_widgets/general/gui_standard_receive_widgets.c +++ b/src/ui/gui_widgets/general/gui_standard_receive_widgets.c @@ -717,7 +717,7 @@ static void RefreshQrCode(void) lv_label_set_text(g_standardReceiveWidgets.addressLabel, address); } else if (g_chainCard == HOME_WALLET_CARD_ZEC) { char addressString[128]; - CutAndFormatString(addressString, ADDRESS_MAX_LEN, addressDataItem.address, 40); + CutAndFormatString(addressString, sizeof(addressString), addressDataItem.address, 40); lv_label_set_text(g_standardReceiveWidgets.addressLabel, addressString); } else { @@ -946,8 +946,8 @@ static void ModelGetAddress(uint32_t index, AddressDataItem_t *item) } if (result->error_code == 0) { item->index = index; - strcpy(item->address, result->data); - strcpy(item->path, hdPath); + strcpy_s(item->address, ADDRESS_MAX_LEN, result->data); + strcpy_s(item->path, 32, hdPath); } free_simple_response_c_char(result); }