summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapps/app_queue.c2
-rwxr-xr-xchannels/chan_sip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 2ea4e849a..2d992735f 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1932,7 +1932,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
tmp->member = cur; /* Never directly dereference! Could change on reload */
tmp->oldstatus = cur->status;
tmp->lastcall = cur->lastcall;
- ast_copy_string(tmp->interface, cur->interface, sizeof(tmp->interface)-1);
+ ast_copy_string(tmp->interface, cur->interface, sizeof(tmp->interface));
/* If we're dialing by extension, look at the extension to know what to dial */
if ((newnum = strstr(tmp->interface, "/BYEXTENSION"))) {
newnum++;
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;