summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/p_test.c2
1 files changed, 1 insertions, 1 deletions
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;
}