Relocate CERT_INFO_PREFIX to ssl.c
[privoxy.git] / pcrs.c
diff --git a/pcrs.c b/pcrs.c
index ca6ba68..8310098 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)
    {
-      text = strncpy(text, replacement, length + 1);
+      strlcpy(text, replacement, length + 1);
       k = (int)length;
    }