Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cellframe/libdap-chain-wallet
1 result
Show changes
Commits on Source (5)
......@@ -22,7 +22,6 @@ if(WIN32)
include_directories(../3rdparty/wepoll/include/)
include_directories(../3rdparty/uthash/src/)
include_directories(../3rdparty/libjson-c/)
include_directories(../3rdparty/libmagic/src/)
include_directories(../3rdparty/curl/include/)
include_directories(../3rdparty/libsqlite3/)
endif()
......
......@@ -75,12 +75,12 @@ int dap_chain_wallet_init()
const char *l_file_name = l_dir_entry->d_name;
size_t l_file_name_len = (l_file_name) ? strlen(l_file_name) : 0;
if((l_file_name_len > 8) && (strcmp(l_file_name + l_file_name_len - 8, ".dwallet") == 0)) {
char *l_file_path_tmp = dap_strdup_printf("%s/%s", c_wallets_path, l_file_name);
char l_file_path_tmp[MAX_PATH] = {'\0'};
dap_sprintf(l_file_path_tmp, "%s/%s", c_wallets_path, l_file_name);
dap_chain_wallet_t *l_wallet = dap_chain_wallet_open_file(l_file_path_tmp);
if(l_wallet) {
dap_chain_wallet_close(l_wallet);
}
DAP_DELETE(l_file_path_tmp);
}
}
closedir(l_dir);
......
......@@ -39,7 +39,7 @@ typedef struct dap_chain_wallet_cert_hdr{
typedef struct dap_chain_wallet_cert{
dap_chain_wallet_cert_hdr_t header;
dap_chain_cert_file_t cert_raw[]; /// Raw certs data
dap_chain_cert_file_t cert_raw; /// Raw certs data
} DAP_ALIGN_PACKED dap_chain_wallet_cert_t;
typedef struct dap_chain_wallet_file_hdr{
......