[Asterisk-cvs] asterisk/channels chan_sip.c,1.777,1.778

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


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

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


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.777
retrieving revision 1.778
diff -u -d -r1.777 -r1.778
--- chan_sip.c	10 Jul 2005 23:49:57 -0000	1.777
+++ chan_sip.c	11 Jul 2005 21:05:35 -0000	1.778
@@ -6369,7 +6369,7 @@
 					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;




More information about the svn-commits mailing list