aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_directory.c')
-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);