From 7bcd0da16409770d92afe657cfb7d644d3f9d440 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 8 Jul 2021 15:51:17 +0700 Subject: [PATCH] warning for length used on strncpy --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index d9c76b2c5..300a34da9 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -16568,7 +16568,7 @@ static int EccKeyParamCopy(char** dst, char* src) ret = BUFFER_E; } else { - XSTRNCPY(*dst, src, length); + XSTRNCPY(*dst, src, MAX_ECC_STRING); } XFREE(src, key->heap, DYNAMIC_TYPE_ECC_BUFFER); #endif