Skip to content

Commit

Permalink
fix: zcash receive page issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soralit committed Dec 18, 2024
1 parent b0b01da commit 0b79d5c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rust/rust_c/cbindgens/release/multi_coin.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rust/rust_c/cbindgens/simulator/btc_only.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/config/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/ui/gui_assets/images_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1520ba38448f23027c73aa6aac2ab4ad
35baef8730e9f010da7681c882e6fc80
6 changes: 3 additions & 3 deletions src/ui/gui_widgets/general/gui_standard_receive_widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 0b79d5c

Please sign in to comment.