Skip to content

Commit 0b79d5c

Browse files
committed
fix: zcash receive page issue
1 parent b0b01da commit 0b79d5c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

rust/rust_c/cbindgens/release/multi_coin.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_guard = "_LIBRUST_C_H"
22

3-
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"
3+
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"
44

55
[defines]
66
"feature = multi-coins" = "BUILD_MULTI_COINS"

rust/rust_c/cbindgens/simulator/btc_only.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_guard = "_LIBRUST_C_H"
22

3-
after_includes = "#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 128\n#define PATH_ITEM_MAX_LEN 32"
3+
after_includes = "#define SIMPLERESPONSE_C_CHAR_MAX_LEN 2048\n#define ADDRESS_MAX_LEN 256\n#define PATH_ITEM_MAX_LEN 32"
44

55
[defines]
66
"feature = multi-coins" = "BUILD_MULTI_COINS"

src/config/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define SOFTWARE_VERSION_MAX_LEN (32)
88
#define SOFTWARE_VERSION_MAJOR 1
99
#define SOFTWARE_VERSION_MINOR 7
10-
#define SOFTWARE_VERSION_BUILD 16
10+
#define SOFTWARE_VERSION_BUILD 17
1111
#define SOFTWARE_VERSION_BETA 0
1212
#define SOFTWARE_VERSION (SOFTWARE_VERSION_MAJOR * 10000 + SOFTWARE_VERSION_MINOR * 100 + SOFTWARE_VERSION_BUILD)
1313

src/ui/gui_assets/images_hash.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1520ba38448f23027c73aa6aac2ab4ad
1+
35baef8730e9f010da7681c882e6fc80

src/ui/gui_widgets/general/gui_standard_receive_widgets.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static void RefreshQrCode(void)
717717
lv_label_set_text(g_standardReceiveWidgets.addressLabel, address);
718718
} else if (g_chainCard == HOME_WALLET_CARD_ZEC) {
719719
char addressString[128];
720-
CutAndFormatString(addressString, ADDRESS_MAX_LEN, addressDataItem.address, 40);
720+
CutAndFormatString(addressString, sizeof(addressString), addressDataItem.address, 40);
721721
lv_label_set_text(g_standardReceiveWidgets.addressLabel, addressString);
722722
}
723723
else {
@@ -946,8 +946,8 @@ static void ModelGetAddress(uint32_t index, AddressDataItem_t *item)
946946
}
947947
if (result->error_code == 0) {
948948
item->index = index;
949-
strcpy(item->address, result->data);
950-
strcpy(item->path, hdPath);
949+
strcpy_s(item->address, ADDRESS_MAX_LEN, result->data);
950+
strcpy_s(item->path, 32, hdPath);
951951
}
952952
free_simple_response_c_char(result);
953953
}

0 commit comments

Comments
 (0)