Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit be67330

Browse files
committed
fix(core): Fix incorrect expression in send_trytes
The copied size at line 115 in `send_tytes()` should be the size of `flex_trit_t` instead of `hash8019_array_p`
1 parent 59b604d commit be67330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accelerator/core/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ status_t ta_send_trytes(const iota_config_t* const iconf, const iota_client_serv
112112
}
113113

114114
// set the value of attach_res->trytes as output trytes result
115-
memcpy(trytes, attach_res->trytes, hash_array_len(attach_res->trytes) * sizeof(hash8019_array_p));
115+
memcpy(trytes, attach_res->trytes, hash_array_len(attach_res->trytes) * sizeof(flex_trit_t));
116116

117117
done:
118118
get_transactions_to_approve_req_free(&tx_approve_req);

0 commit comments

Comments
 (0)