X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f314c30b8c4ffbd7d87146f72be7a061d506235..ada88e3efe9048f4d660eb657b0e44bd463b0fba:/src/regex/regcomp.c diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index 39de02eb6f..69f9517447 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -296,18 +296,7 @@ regcomp(regex_t *re, const chr *string, int flags) { - - size_t nLen = 0; - chr* s2 = (chr*) string; - - if (string && *string) - { - while(*++s2); - } - - nLen = ((s2 - string) / sizeof(chr)); - - return wx_regcomp(re, string, nLen, flags); + return wx_regcomp(re, string, wx_strlen(string), flags); } int wx_regcomp(regex_t *re,