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++;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to