mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 02:03:39 +00:00
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;
|
||||
|
||||
/* pointer to the end of the allocated buffer for safety checks */
|
||||
bufend = newreply + allocsize - 1;
|
||||
bufend = newreply + allocsize;
|
||||
*bufend = 0;
|
||||
|
||||
/* go thru all the urls and replace the user part */
|
||||
|
Loading…
x
Reference in New Issue
Block a user