[Asterisk-cvs] asterisk/apps app_dial.c,1.46,1.47

markster at lists.digium.com markster at lists.digium.com
Wed Dec 3 08:55:34 CST 2003


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

Modified Files:
	app_dial.c 
Log Message:
I have no idea what the heck that was supposed to be


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- app_dial.c	28 Nov 2003 04:38:07 -0000	1.46
+++ app_dial.c	3 Dec 2003 15:21:58 -0000	1.47
@@ -366,8 +366,7 @@
 	
 	LOCAL_USER_ADD(u);
 	
-	/* Parse our arguments XXX Check for failure XXX */
-	strncpy(info, (char *)data, strlen((char *)data) + AST_MAX_EXTENSION-1);
+	strncpy(info, (char *)data, sizeof(info) - 1);
 	peers = info;
 	if (peers) {
 		timeout = strchr(info, '|');




More information about the svn-commits mailing list