Skip to content

Commit 65739bc

Browse files
Fix W3C strings with null terminator
1 parent 2affdc2 commit 65739bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_features/provide_tx_simulation/cmd_get_tx_simulation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ typedef struct tx_simu_s {
3232
uint64_t chain_id;
3333
const char tx_hash[HASH_SIZE];
3434
const char domain_hash[HASH_SIZE];
35-
const char provider_msg[MSG_SIZE];
36-
const char tiny_url[URL_SIZE];
35+
const char provider_msg[MSG_SIZE + 1]; // +1 for the null terminator
36+
const char tiny_url[URL_SIZE + 1]; // +1 for the null terminator
3737
const char addr[ADDRESS_LENGTH];
3838
const char partner[PARTNER_SIZE];
3939
tx_simulation_score_t risk;

0 commit comments

Comments
 (0)