Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv25321/apps
Modified Files:
Tag: v1-2
app_dial.c
Log Message:
issue #5850
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.188
retrieving revision 1.188.2.1
diff -u -d -r1.188 -r1.188.2.1
--- app_dial.c 14 Nov 2005 10:24:59 -0000 1.188
+++ app_dial.c 25 Nov 2005 14:17:38 -0000 1.188.2.1
@@ -512,10 +512,8 @@
if (in->cid.cid_ani) {
if
(o->chan->cid.cid_ani)
free(o->chan->cid.cid_ani);
- o->chan->cid.cid_ani =
malloc(strlen(in->cid.cid_ani) + 1);
- if
(o->chan->cid.cid_ani)
-
ast_copy_string(o->chan->cid.cid_ani, in->cid.cid_ani,
sizeof(o->chan->cid.cid_ani));
- else
+ o->chan->cid.cid_ani =
strdup(in->cid.cid_ani);
+ if
(!o->chan->cid.cid_ani)
ast_log(LOG_WARNING, "Out of memory\n");
}
if (o->chan->cid.cid_rdnis)
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs