aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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);