aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-20 16:39:49 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-20 16:39:49 +0000
commitcba0f54bb79011a23846170f3d267238a929cae0 (patch)
tree94bf6bb53ac894977b4859aa575b76f087be0a18 /channel.c
parent000130b1d3cd30b4e007969098fbda821d28d89f (diff)
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 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6178 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channel.c b/channel.c
index c2e4a77cf..71c6c8581 100755
--- a/channel.c
+++ b/channel.c
@@ -521,7 +521,7 @@ struct ast_channel *ast_channel_alloc(int needqueue)
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 @@ struct ast_channel *ast_channel_alloc(int needqueue)
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));