[svn-commits] qwell: trunk r60937 - in /trunk: ./ apps/app_directory.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Apr 9 10:23:56 MST 2007


Author: qwell
Date: Mon Apr  9 12:23:55 2007
New Revision: 60937

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

................
r60936 | qwell | 2007-04-09 12:22:59 -0500 (Mon, 09 Apr 2007) | 13 lines

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:
    trunk/   (props changed)
    trunk/apps/app_directory.c

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

Modified: trunk/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_directory.c?view=diff&rev=60937&r1=60936&r2=60937
==============================================================================
--- trunk/apps/app_directory.c (original)
+++ trunk/apps/app_directory.c Mon Apr  9 12:23:55 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 svn-commits mailing list