[Asterisk-cvs] asterisk/channels chan_zap.c,1.354,1.355

markster at lists.digium.com markster at lists.digium.com
Tue Oct 5 16:54:01 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Fix zap seggy


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.354
retrieving revision 1.355
diff -u -d -r1.354 -r1.355
--- chan_zap.c	3 Oct 2004 21:18:27 -0000	1.354
+++ chan_zap.c	5 Oct 2004 20:55:31 -0000	1.355
@@ -3494,13 +3494,13 @@
 									chan = zt_new(p, AST_STATE_RESERVED, 0, SUB_THREEWAY, 0, 0);
 									if (p->zaptrcallerid) {
 										if (!p->origcid_num) {
-											p->origcid_num = malloc(strlen(p->origcid_num) + 1);
+											p->origcid_num = malloc(strlen(p->cid_num) + 1);
 											strncpy(p->origcid_num, p->cid_num, strlen(p->cid_num)); /* safe */
 											/* make sure p->origcallerid is terminated */
 											p->origcid_num[strlen(p->cid_num)] = '\0';
 										}
 										if (!p->origcid_name) {
-											p->origcid_name = malloc(strlen(p->origcid_name) + 1);
+											p->origcid_name = malloc(strlen(p->cid_name) + 1);
 											strncpy(p->origcid_name, p->cid_name, strlen(p->cid_name)); /* safe */
 											/* make sure p->origcallerid is terminated */
 											p->origcid_name[strlen(p->cid_name)] = '\0';




More information about the svn-commits mailing list