X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcrs.c;h=83100983b6475d0b7d75cbae6280db8595227d28;hp=ca6ba680ef4b9b2c45cbfee8ea0facfdba1ae7eb;hb=219e30fb5a8e1cfa790854a3948a89f72e4f5681;hpb=c83713758e9465e03ec3b0228c433e6f2d843352 diff --git a/pcrs.c b/pcrs.c index ca6ba680..83100983 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; }