X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=ssl.c;h=afd9af450c193689b22b7cdf87c0be559f513782;hp=186615477663fa49832248f78c3e588ab15ee0b1;hb=9540faa0465d9a358b8ad5451dbb93b20e819556;hpb=babd5dc0098b2c1703e1c1395c5262ec293c283e 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)