Revision
16555
Author
mrene
Date
2010-02-02 13:02:37 -0600 (Tue, 02 Feb 2010)

Log Message

make switch_regex_match() work with grouping

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_regex.c (16554 => 16555)


--- freeswitch/trunk/src/switch_regex.c	2010-02-02 16:37:55 UTC (rev 16554)
+++ freeswitch/trunk/src/switch_regex.c	2010-02-02 19:02:37 UTC (rev 16555)
@@ -174,7 +174,7 @@
 	int error_offset = 0;		/* Holds the offset of an error                                      */
 	pcre *pcre_prepared = NULL;	/* Holds the compiled regex                                          */
 	int match_count = 0;		/* Number of times the regex was matched                             */
-	int offset_vectors[2];		/* not used, but has to exist or pcre won't even try to find a match */
+	int offset_vectors[255];	/* not used, but has to exist or pcre won't even try to find a match */
 	int pcre_flags = 0;
 	
 	/* Compile the expression */