diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-11 21:05:35 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-11 21:05:35 +0000 |
commit | 291f01d41fb778cbfce66046a5e744724b6882f0 (patch) | |
tree | bce22ea851320a565141959bf2382de3507273d3 /channels | |
parent | 27dfdd0b1256ebde19cd2a0f008c6a2a2c83f2b3 (diff) |
fix off by one errors in calls to ast_copy_string (bug #4600)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6084 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 80374497c..c5d9322d6 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6369,7 +6369,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme ast_copy_string(p->context, peer->context, sizeof(p->context)); ast_copy_string(p->peersecret, peer->secret, sizeof(p->peersecret)); ast_copy_string(p->peermd5secret, peer->md5secret, sizeof(p->peermd5secret)); - ast_copy_string(p->language, peer->language, sizeof(p->language) -1); + ast_copy_string(p->language, peer->language, sizeof(p->language)); ast_copy_string(p->accountcode, peer->accountcode, sizeof(p->accountcode)); p->amaflags = peer->amaflags; p->callgroup = peer->callgroup; |