summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-07-11 21:05:35 +0000
committerRussell Bryant <russell@russellbryant.com>2005-07-11 21:05:35 +0000
commite24821e1cf694d28004272a47600f1e0fa2153cd (patch)
treebce22ea851320a565141959bf2382de3507273d3 /apps/app_queue.c
parenteb397f08dfffe95774c602b30891548168da779f (diff)
fix off by one errors in calls to ast_copy_string (bug #4600)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-xapps/app_queue.c2
1 files changed, 1 insertions, 1 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++;