mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 02:32:36 +00:00
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
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user