Skip to content

Commit

Permalink
remove use of _countof
Browse files Browse the repository at this point in the history
  • Loading branch information
krishanifs committed Sep 23, 2024
1 parent 9b528d0 commit 9aca497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjsip/src/pjsip/sip_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@ static void send_msg_callback( pjsip_send_state *send_state,
tsx_update_transport(tsx, send_state->cur_transport);

/* Update remote address. */
pj_assert(tdata->dest_info.cur_addr < _countof(tdata->dest_info.addr.entry));
pj_assert(tdata->dest_info.cur_addr < (sizeof(tdata->dest_info.addr.entry)/sizeof(tdata->dest_info.addr.entry[0])));
tsx->addr_len = tdata->dest_info.addr.entry[tdata->dest_info.cur_addr].addr_len;
pj_memcpy(&tsx->addr,
&tdata->dest_info.addr.entry[tdata->dest_info.cur_addr].addr,
Expand Down

0 comments on commit 9aca497

Please sign in to comment.