This fixes a high fence violation that MALLOC_DEBUG reported to me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2008-03-31 16:37:13 +00:00
parent e5c4deace3
commit 76baf34555
1 changed files with 1 additions and 1 deletions

View File

@ -8313,7 +8313,7 @@ static void copy_request(struct sip_request *dst, const struct sip_request *src)
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);