diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-09 17:22:15 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-09 17:22:15 +0000 |
commit | 96ea77c32e22518efaf2d45c9213c3c82250ae38 (patch) | |
tree | 704f9266b1894f7f893250764229e546ffaacc54 /apps | |
parent | 2732e56a5264c6a9b43b9dc38ae1a66327b85d59 (diff) |
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.2@60935 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 2b1d4e967..c2764a222 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -470,7 +470,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char * pos = strrchr(pos, ' ') + 1; conv = convert(pos); if (conv) { - if (!strcmp(conv, ext)) { + if (!strncmp(conv, ext, strlen(ext))) { /* Match! */ found++; free(conv); |