From cc283f271c398088f990c24601dcdaac060eb30b Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 24 Apr 2023 14:28:08 +0200 Subject: [PATCH] Changed strcpy to strlcpy for the static analysis --- src_common/uint256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_common/uint256.c b/src_common/uint256.c index b3f4b2a..7851124 100644 --- a/src_common/uint256.c +++ b/src_common/uint256.c @@ -240,7 +240,7 @@ bool tostring256(const uint256_t *const number, if (offset == outLength) { // destination buffer too small if (outLength > 3) { - strcpy(out, "..."); + strlcpy(out, "...", outLength); } else { out[0] = '\0'; }