summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-05-03 02:09:16 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-05-03 02:09:16 +0000
commitcd9a1226b5b97303f67a9df587fee9bd34ca4eb2 (patch)
tree87a68d50c01cd672d30c7dd36ad32b5010062bda /channels
parent7b576dd5cfca8e99360c77e9995cf04840d2b4b4 (diff)
ensure buffer size is computed properly for ast_copy_string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
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)) {