Skip to content

Commit 0948804

Browse files
Merge pull request #420 from LedgerHQ/bugfix/apa/static_analysis_fix
Fixes static analysis warning
2 parents 2a095bf + cc283f2 commit 0948804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_common/uint256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ bool tostring256(const uint256_t *const number,
240240

241241
if (offset == outLength) { // destination buffer too small
242242
if (outLength > 3) {
243-
strcpy(out, "...");
243+
strlcpy(out, "...", outLength);
244244
} else {
245245
out[0] = '\0';
246246
}

0 commit comments

Comments
 (0)