diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-09 17:22:59 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-09 17:22:59 +0000 |
commit | 82df58c3ffb9dc61272eb1246803c8ed925494eb (patch) | |
tree | 23a5581d63225eda0be641ea3fe846b620a8192d /apps/app_directory.c | |
parent | 482ff7609508db02a8328d915cd8e7e044c1121c (diff) |
Merged revisions 60935 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r60935 | qwell | 2007-04-09 12:22:15 -0500 (Mon, 09 Apr 2007) | 5 lines
Allow matching on names shorter than 3 chars.
This also fixes the case where somebody wants to match on less then 3 chars.
Issue 9071
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60936 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r-- | apps/app_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index a179a8273..464adcd85 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -460,7 +460,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, struct pos = strrchr(pos, ' ') + 1; conv = convert(pos); if (conv) { - if (!strcmp(conv, ext)) { + if (!strncmp(conv, ext, strlen(ext))) { /* Match! */ found++; free(conv); |