From: Patrick Steuer Date: Mon, 1 Jul 2019 16:09:16 +0000 (+0200) Subject: test/p_test.c: silence -Wstringop-overflow X-Git-Tag: openssl-3.0.0-alpha1~1831 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f663ddc7b00a2d75c1e7d868b73b24adc3f62095;p=oweals%2Fopenssl.git test/p_test.c: silence -Wstringop-overflow Signed-off-by: Patrick Steuer Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9282) --- diff --git a/test/p_test.c b/test/p_test.c index 925e3b8948..904b75b2de 100644 --- a/test/p_test.c +++ b/test/p_test.c @@ -92,7 +92,7 @@ static int p_get_params(void *vprov, OSSL_PARAM params[]) p->return_size = buf_l = strlen(buf) + 1; if (p->data_size >= buf_l) - strncpy(p->data, buf, buf_l); + strcpy(p->data, buf); else ok = 0; }