X-Git-Url: http://www.privoxy.org/gitweb/contact.html?a=blobdiff_plain;f=urlmatch.c;h=494a69a96fa6e1e3d985b24836790872f13ac0ce;hb=af381609cc6f322ab864bc2372fec8769f3eb599;hp=22feb9c8c90ea4b69c1db556460a4dfdeb10641b;hpb=662426360b8d10202feabdcd3515d64ea8833798;p=privoxy.git diff --git a/urlmatch.c b/urlmatch.c index 22feb9c8..494a69a9 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -666,7 +666,7 @@ static jb_err compile_pattern(const char *pattern, enum regex_anchoring anchorin snprintf(rebuf, rebuf_size, fmt, pattern); - *regex = pcre2_compile((const unsigned char *)pattern, + *regex = pcre2_compile((const unsigned char *)rebuf, PCRE2_ZERO_TERMINATED, PCRE2_CASELESS, &errcode, &error_offset, NULL); if (*regex == NULL)