]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
bug fix for mod_sofia, sofia_contact_user_replacement was off by 1 when replacing...
authorKonrad Hammel <konrad@sangoma.com>
Thu, 10 Feb 2011 21:26:40 +0000 (16:26 -0500)
committerKonrad Hammel <konrad@sangoma.com>
Thu, 10 Feb 2011 21:38:36 +0000 (16:38 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 8f1a374aa4365a4a7b1216891ee351f4f3ff5176..8e31e13864b43412026ba6837d06eb311af0d4e0 100644 (file)
@@ -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 */