[asterisk-commits] qwell: branch 1.2 r60935 -
/branches/1.2/apps/app_directory.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 9 10:22:16 MST 2007
Author: qwell
Date: Mon Apr 9 12:22:15 2007
New Revision: 60935
URL: http://svn.digium.com/view/asterisk?view=rev&rev=60935
Log:
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
Modified:
branches/1.2/apps/app_directory.c
Modified: branches/1.2/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_directory.c?view=diff&rev=60935&r1=60934&r2=60935
==============================================================================
--- branches/1.2/apps/app_directory.c (original)
+++ branches/1.2/apps/app_directory.c Mon Apr 9 12:22:15 2007
@@ -470,7 +470,7 @@
pos = strrchr(pos, ' ') + 1;
conv = convert(pos);
if (conv) {
- if (!strcmp(conv, ext)) {
+ if (!strncmp(conv, ext, strlen(ext))) {
/* Match! */
found++;
free(conv);
More information about the asterisk-commits
mailing list