[Asterisk-cvs] asterisk channel.c,1.127,1.128
citats at lists.digium.com
citats at lists.digium.com
Tue Jun 29 15:43:11 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk
Modified Files:
channel.c
Log Message:
Use snprintf in __ast_request_and_dial instead of sprintf
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- channel.c 29 Jun 2004 12:40:15 -0000 1.127
+++ channel.c 29 Jun 2004 19:29:03 -0000 1.128
@@ -1796,7 +1796,7 @@
}
if (chan->cdr) {
char tmp[256];
- sprintf(tmp, "%s/%s",type,(char *)data);
+ snprintf(tmp, 256, "%s/%s", type, (char *)data);
ast_cdr_setapp(chan->cdr,"Dial",tmp);
ast_cdr_update(chan);
ast_cdr_start(chan->cdr);
More information about the svn-commits
mailing list