Skip to content
Browse files

Merge branch 'master' of https://github.com/dkhenry/lib_mysqludf_preg

…into dev-1.2
  • Loading branch information...
2 parents 13d3458 + 9f479a2 commit d091650588f2f8f9325809bf4f5d077ca460e170 raw committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib_mysqludf_preg_position.c
View
2 lib_mysqludf_preg_position.c
@@ -255,7 +255,7 @@ longlong preg_position( UDF_INIT *initid, UDF_ARGS *args, char *is_null,
groupnum = pregGetGroupNum( re , args , 2 ) ;
// If groupnum found, get the offset
- if( groupnum >= 0 && groupnum < oveccount )
+ if( groupnum >= 0 && groupnum < (oveccount/3) )
{
// ovec is in pairs of starting and ending offsets. (ie.
// ovec[0] is start of whole match, ovec[1] is end of whole

0 comments on commit d091650

Please sign in to comment.
Something went wrong with that request. Please try again.