mirror of
https://github.com/openssl/openssl.git
synced 2025-01-12 13:36:28 +08:00
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:
parent
211da00b79
commit
f663ddc7b0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user