Merge pull request #420 from LedgerHQ/bugfix/apa/static_analysis_fix

Fixes static analysis warning
This commit is contained in:
apaillier-ledger
2023-04-24 15:01:09 +02:00
committed by GitHub

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