[Asterisk-cvs] asterisk channel.c,1.223,1.224

russell at lists.digium.com russell at lists.digium.com
Wed Jul 20 12:32:32 CDT 2005


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

Modified Files:
	channel.c 
Log Message:
put ast_recvchar under its desc, add desc for ast_senddigit, don't use a
length limited copy for a static copy into a buffer that we *know* is big
enough


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -d -r1.223 -r1.224
--- channel.c	18 Jul 2005 05:00:23 -0000	1.223
+++ channel.c	20 Jul 2005 16:39:49 -0000	1.224
@@ -521,7 +521,7 @@
 	tmp->fds[AST_MAX_FDS-1] = tmp->alertpipe[0];
 	/* And timing pipe */
 	tmp->fds[AST_MAX_FDS-2] = tmp->timingfd;
-	ast_copy_string(tmp->name, "**Unknown**", sizeof(tmp->name));
+	strcpy(tmp->name, "**Unkown**");
 	/* Initial state */
 	tmp->_state = AST_STATE_DOWN;
 	tmp->streamid = -1;
@@ -533,9 +533,9 @@
 	headp = &tmp->varshead;
 	ast_mutex_init(&tmp->lock);
 	AST_LIST_HEAD_INIT(headp);
-	ast_copy_string(tmp->context, "default", sizeof(tmp->context));
+	strcpy(tmp->context, "default");
 	ast_copy_string(tmp->language, defaultlanguage, sizeof(tmp->language));
-	ast_copy_string(tmp->exten, "s", sizeof(tmp->exten));
+	strcpy(tmp->exten, "s");
 	tmp->priority = 1;
 	tmp->amaflags = ast_default_amaflags;
 	ast_copy_string(tmp->accountcode, ast_default_accountcode, sizeof(tmp->accountcode));




More information about the svn-commits mailing list