diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-12-27 11:07:33 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-12-27 11:07:33 +0000 |
commit | fc3d66ee67a7574780a6df782856432ffa8c13b1 (patch) | |
tree | 46a9f947733ed457633fbc65b6f8415c7aa1d432 /apps/app_directory.c | |
parent | 3c950432e5d3f679bed8861a19b564b61c061eca (diff) |
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@398 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directory.c')
-rwxr-xr-x | apps/app_directory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index bea790293..4ee7cdcbe 100755 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -172,7 +172,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char * res = ast_waitstream(chan, AST_DIGIT_ANY); ast_stopstream(chan); } else { - res = ast_say_digit_str(chan, v->name, chan->language); + res = ast_say_digit_str(chan, v->name, AST_DIGIT_ANY, chan->language); } ahem: if (!res) @@ -184,9 +184,9 @@ ahem: ast_stopstream(chan); if (res > -1) { if (res == '1') { - strncpy(chan->exten, v->name, sizeof(chan->exten)); + strncpy(chan->exten, v->name, sizeof(chan->exten)-1); chan->priority = 0; - strncpy(chan->context, context, sizeof(chan->context)); + strncpy(chan->context, context, sizeof(chan->context)-1); res = 0; break; } else if (res == '*') { |