X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=ssl.c;h=afd9af450c193689b22b7cdf87c0be559f513782;hp=186615477663fa49832248f78c3e588ab15ee0b1;hb=ff9386cc783d0e77c145e5dc33a1f7243df5c6ee;hpb=c6dd86730a2a5588720f2a248a105160b51b0a89 diff --git a/ssl.c b/ssl.c index 18661547..afd9af45 100644 --- a/ssl.c +++ b/ssl.c @@ -1977,7 +1977,7 @@ static int *get_ciphersuites_from_string(const char *parameter_string) size_t parameter_len = strlen(parameter_string); ciphersuites_string = zalloc_or_die(parameter_len + 1); - strncpy(ciphersuites_string, parameter_string, parameter_len); + strlcpy(ciphersuites_string, parameter_string, parameter_len + 1); ciphersuites_index = ciphersuites_string; while (*ciphersuites_index)