From f663ddc7b00a2d75c1e7d868b73b24adc3f62095 Mon Sep 17 00:00:00 2001 From: Patrick Steuer Date: Mon, 1 Jul 2019 18:09:16 +0200 Subject: [PATCH] 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) --- test/p_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1