Skip to content

Commit

Permalink
cnxcc: use snprintf() instead of sprintf()
Browse files Browse the repository at this point in the history
(cherry picked from commit 05bd956)
  • Loading branch information
miconda authored and linuxmaniac committed Jun 5, 2020
1 parent a41dcf3 commit daecf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/cnxcc/cnxcc_sip_msg_faker.c
Expand Up @@ -40,7 +40,7 @@ int faked_msg_init_with_dlg_info(str *callid, str *from_uri, str *from_tag,
{
memset(_faked_sip_msg_buf, 0, FAKED_SIP_MSG_BUF_LEN);

sprintf(_faked_sip_msg_buf, FAKED_SIP_MSG_FORMAT, from_uri->len,
snprintf(_faked_sip_msg_buf, FAKED_SIP_MSG_BUF_LEN, FAKED_SIP_MSG_FORMAT, from_uri->len,
from_uri->s, from_tag->len, from_tag->s, to_uri->len, to_uri->s,
to_tag->len, to_tag->s, callid->len, callid->s);

Expand Down

0 comments on commit daecf04

Please sign in to comment.