1
0
Fork 0

Fixed compiler warning

This commit is contained in:
Andreas Eversberg 2021-03-28 12:55:42 +02:00
parent 91fd188a92
commit 603b437a80
1 changed files with 2 additions and 2 deletions

View File

@ -916,8 +916,8 @@ static void ep_i_register(sip_endpoint_t *sip_ep, int status, nua_t *nua, nua_ha
PDEBUG(DSIP, DEBUG_DEBUG, " -> Authentication: %d %s\n", status, auth_text);
if (status == 200) {
strncpy(sip_ep->remote_contact_user, contact_user, sizeof(sip_ep->remote_contact_user) - 1);
strncpy(sip_ep->remote_contact_peer, contact_peer, sizeof(sip_ep->remote_contact_peer) - 1);
strcpy(sip_ep->remote_contact_user, contact_user);
strcpy(sip_ep->remote_contact_peer, contact_peer);
sip_ep->remote_user = sip_ep->remote_contact_user;
sip_ep->remote_peer = sip_ep->remote_contact_peer;
sip_ep->register_nonce[0] = '\0';