[Asterisk-cvs] asterisk/apps app_queue.c,1.147,1.148

russell at lists.digium.com russell at lists.digium.com
Mon Jul 11 16:57:19 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv11252/apps

Modified Files:
	app_queue.c 
Log Message:
fix off by one errors in calls to ast_copy_string (bug #4600)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- app_queue.c	10 Jul 2005 23:49:57 -0000	1.147
+++ app_queue.c	11 Jul 2005 21:05:35 -0000	1.148
@@ -1932,7 +1932,7 @@
 		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++;




More information about the svn-commits mailing list