Skip to content

Commit

Permalink
test/p_test.c: silence -Wstringop-overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Steuer <[email protected]>

Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9282)
  • Loading branch information
p-steuer committed Jul 2, 2019
1 parent 211da00 commit f663ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/p_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f663ddc

Please sign in to comment.