aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-05 20:55:31 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-05 20:55:31 +0000
commitc6d1d140260be361be91f71c61f2b7a949b2aa78 (patch)
treeec3cbeab78705dbe8e81cc68cba4625a79905abb /channels
parent89e09dcdf85d029417888df4f5ad88979f9bfb97 (diff)
Fix zap seggy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3915 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index a42edc7dd..f9000590b 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3494,13 +3494,13 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
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';