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:
Konrad Hammel 2011-02-10 16:26:40 -05:00
parent be039e9fba
commit 4a9edf679f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */