[asterisk-commits] russell: trunk r111996 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 31 11:37:14 CDT 2008
Author: russell
Date: Mon Mar 31 11:37:13 2008
New Revision: 111996
URL: http://svn.digium.com/view/asterisk?view=rev&rev=111996
Log:
This fixes a high fence violation that MALLOC_DEBUG reported to me.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=111996&r1=111995&r2=111996
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Mar 31 11:37:13 2008
@@ -8313,7 +8313,7 @@
if (!dst->data && !(dst->data = ast_str_create(src->data->used + 1)))
return;
- else if (dst->data->len < src->data->used)
+ else if (dst->data->len < src->data->used + 1)
ast_str_make_space(&dst->data, src->data->used + 1);
memcpy(dst->data->str, src->data->str, src->data->used + 1);
More information about the asterisk-commits
mailing list