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
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ static int p_get_params(void *vprov, OSSL_PARAM params[])
|
||||||
|
|
||||||
p->return_size = buf_l = strlen(buf) + 1;
|
p->return_size = buf_l = strlen(buf) + 1;
|
||||||
if (p->data_size >= buf_l)
|
if (p->data_size >= buf_l)
|
||||||
strncpy(p->data, buf, buf_l);
|
strcpy(p->data, buf);
|
||||||
else
|
else
|
||||||
ok = 0;
|
ok = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue