Changed strcpy to strlcpy for the static analysis

This commit is contained in:
Alexandre Paillier
2023-04-24 14:28:08 +02:00
parent 2a095bfc93
commit cc283f271c

View File

@@ -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';
}