diff --git a/dap_chain_node_client.c b/dap_chain_node_client.c index fe3bb648caf0a2043a5fe72f2eea2945e5de84ae..f1455f2cd687cd79bddd63e778cd3930cdbfea6e 100644 --- a/dap_chain_node_client.c +++ b/dap_chain_node_client.c @@ -79,7 +79,10 @@ int dap_chain_node_client_init(void) { dap_config_t *g_config; // read listen_port_tcp from settings - dap_config_init(SYSTEM_CONFIGS_DIR); + memcpy( l_sys_dir_path + l_sys_dir_path_len, SYSTEM_CONFIGS_DIR, sizeof(SYSTEM_CONFIGS_DIR) ); + dap_config_init(l_sys_dir_path); + memset(l_sys_dir_path + l_sys_dir_path_len, '\0', MAX_PATH - l_sys_dir_path_len); + if((g_config = dap_config_open(DAP_APP_NAME)) == NULL) { return -1; }