bug fix for mod_sofia, sofia_contact_user_replacement was off by 1 when replacing the dialed number causing it to not copy anything
This commit is contained in:
parent
be039e9fba
commit
4a9edf679f
|
@ -3588,7 +3588,7 @@ SWITCH_STANDARD_API(sofia_contact_function)
|
||||||
newptr = newreply;
|
newptr = newreply;
|
||||||
|
|
||||||
/* pointer to the end of the allocated buffer for safety checks */
|
/* pointer to the end of the allocated buffer for safety checks */
|
||||||
bufend = newreply + allocsize - 1;
|
bufend = newreply + allocsize;
|
||||||
*bufend = 0;
|
*bufend = 0;
|
||||||
|
|
||||||
/* go thru all the urls and replace the user part */
|
/* go thru all the urls and replace the user part */
|
||||||
|
|
Loading…
Reference in New Issue