aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 17:22:15 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 17:22:15 +0000
commit96ea77c32e22518efaf2d45c9213c3c82250ae38 (patch)
tree704f9266b1894f7f893250764229e546ffaacc54
parent2732e56a5264c6a9b43b9dc38ae1a66327b85d59 (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
-rw-r--r--apps/app_directory.c2
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);