[Asterisk-cvs] asterisk channel.c,1.73.2.12,1.73.2.13

citats at lists.digium.com citats at lists.digium.com
Tue Jun 29 15:43:20 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk-stable

Modified Files:
      Tag: v1-0_stable
	channel.c 
Log Message:
Backport: Use snprintf in __ast_request_and_dial instead of sprintf

Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.73.2.12
retrieving revision 1.73.2.13
diff -u -d -r1.73.2.12 -r1.73.2.13
--- channel.c	27 May 2004 16:50:46 -0000	1.73.2.12
+++ channel.c	29 Jun 2004 19:29:12 -0000	1.73.2.13
@@ -1617,7 +1617,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