diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-03 02:09:16 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-03 02:09:16 +0000 |
commit | 4ea9d7fe6e29c7dd3bc9672e7b86ba7857576b07 (patch) | |
tree | 87a68d50c01cd672d30c7dd36ad32b5010062bda /channels/chan_sip.c | |
parent | 5291ce5ecfa5a362267195e37148df4d224ee6de (diff) |
ensure buffer size is computed properly for ast_copy_string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5554 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 412dac3f2..d71c0f538 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1490,7 +1490,7 @@ static int create_addr(struct sip_pvt *r, char *opeer) ast_copy_string(r->fullcontact, p->fullcontact, sizeof(r->fullcontact)); if (!r->initreq.headers && !ast_strlen_zero(p->fromdomain)) { if ((callhost = strchr(r->callid, '@'))) { - ast_copy_string(callhost + 1, p->fromdomain, sizeof(r->callid) - (callhost - r->callid) - 2); + ast_copy_string(callhost + 1, p->fromdomain, sizeof(r->callid) - (callhost - r->callid) - 1); } } if (ast_strlen_zero(r->tohost)) { |