diff --git a/cellframe-sdk b/cellframe-sdk index 5fd7f5d7f49eeffd095c150f8363c453838ac9d5..4403ab9eeff705af5e94ecb4feb0dd7fe06809e7 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit 5fd7f5d7f49eeffd095c150f8363c453838ac9d5 +Subproject commit 4403ab9eeff705af5e94ecb4feb0dd7fe06809e7 diff --git a/main.c b/main.c index 119130d55e8f90bc9a9d72d9cb5b7c119e47262e..0baec104f92f8fdf3cb5d041f91bcdd0b8eb88f8 100644 --- a/main.c +++ b/main.c @@ -986,7 +986,7 @@ static char* convert_tx_to_json_string(dap_chain_datum_tx_t *a_tx, bool a_beauty json_object_object_add(json_obj_out, "items", json_arr_items); const char *l_out_buf = json_object_to_json_string_ext(json_obj_out, a_beauty ? JSON_C_TO_STRING_PRETTY : JSON_C_TO_STRING_PLAIN); - char *l_out = DAP_DUP_SIZE((void*)l_out_buf, strlen(l_out_buf)); + char *l_out = dap_strdup(l_out_buf); json_object_put(json_obj_out); return l_out;