[asterisk-commits] qwell: branch 1.4 r60936 - in /branches/1.4: ./ apps/app_directory.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 9 10:23:00 MST 2007


Author: qwell
Date: Mon Apr  9 12:22:59 2007
New Revision: 60936

URL: http://svn.digium.com/view/asterisk?view=rev&rev=60936
Log:
Merged revisions 60935 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r60935 | qwell | 2007-04-09 12:22:15 -0500 (Mon, 09 Apr 2007) | 5 lines

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.4/   (props changed)
    branches/1.4/apps/app_directory.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_directory.c?view=diff&rev=60936&r1=60935&r2=60936
==============================================================================
--- branches/1.4/apps/app_directory.c (original)
+++ branches/1.4/apps/app_directory.c Mon Apr  9 12:22:59 2007
@@ -460,7 +460,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