diff options
author | Jason Parker <jparker@digium.com> | 2007-04-09 17:23:55 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2007-04-09 17:23:55 +0000 |
commit | a84ca7944599fd4801b40afd07f983ede25f4245 (patch) | |
tree | b2e158c2858b43ab871a9bbf98677ca13603f0f2 /apps/app_directory.c | |
parent | c3ae939ddc2e3c2efef5821517c7432d1e76d059 (diff) |
Merged revisions 60936 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r60936 | qwell | 2007-04-09 12:22:59 -0500 (Mon, 09 Apr 2007) | 13 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@60937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 84310e089..b14915e4a 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); |