X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcrs.c;h=007f7cc104d9b9cb40648434f938a597df30508c;hp=ca6ba680ef4b9b2c45cbfee8ea0facfdba1ae7eb;hb=0727fcb2601279e3568ee2e7d216931f6fc9abfe;hpb=6439a03db98dfbaba705ca3743b64b775122837c diff --git a/pcrs.c b/pcrs.c index ca6ba680..007f7cc1 100644 --- a/pcrs.c +++ b/pcrs.c @@ -281,7 +281,7 @@ static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int tr */ if (trivialflag) { - text = strncpy(text, replacement, length + 1); + strlcpy(text, replacement, length + 1); k = (int)length; } @@ -670,10 +670,14 @@ pcrs_job *pcrs_compile(const char *pattern, const char *substitute, const char * #ifdef PCRE_STUDY_JIT_COMPILE +#ifdef DISABLE_PCRE_JIT_COMPILATION +#warning PCRE_STUDY_JIT_COMPILE is supported but Privoxy has been configured not to use it +#else if (!(flags & PCRS_DYNAMIC)) { pcre_study_options = PCRE_STUDY_JIT_COMPILE; } +#endif #endif /*