test/p_test.c: silence -Wstringop-overflow

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9282)
This commit is contained in:
Patrick Steuer 2019-07-01 18:09:16 +02:00
parent 211da00b79
commit f663ddc7b0

View file

@ -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;
}