projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add #202: Allow to use multiple log files with different debug settings.
[privoxy.git]
/
pcrs.c
diff --git
a/pcrs.c
b/pcrs.c
index
ca6ba68
..
007f7cc
100644
(file)
--- a/
pcrs.c
+++ b/
pcrs.c
@@
-281,7
+281,7
@@
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int tr
*/
if (trivialflag)
{
*/
if (trivialflag)
{
-
text = strn
cpy(text, replacement, length + 1);
+
strl
cpy(text, replacement, length + 1);
k = (int)length;
}
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 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;
}
if (!(flags & PCRS_DYNAMIC))
{
pcre_study_options = PCRE_STUDY_JIT_COMPILE;
}
+#endif
#endif
/*
#endif
/*