From 6f40722c177491b9658ae5acf499a2c54ba405f9 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Tue, 2 Feb 2010 19:02:37 +0000 Subject: [PATCH] make switch_regex_match() work with grouping git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16555 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_regex.c b/src/switch_regex.c index cb567395fd..12a11cf85a 100644 --- a/src/switch_regex.c +++ b/src/switch_regex.c @@ -174,7 +174,7 @@ SWITCH_DECLARE(switch_status_t) switch_regex_match_partial(const char *target, c 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 */