From fc3d66ee67a7574780a6df782856432ffa8c13b1 Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 27 Dec 2001 11:07:33 +0000 Subject: Version 0.1.10 from FTP git-svn-id: http://svn.digium.com/svn/asterisk/trunk@398 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_directory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/app_directory.c') 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 == '*') { -- cgit v1.2.3