Fix uint256_to_decimal

This commit is contained in:
pscott
2021-05-20 10:54:34 +02:00
parent 59b5b6a304
commit 268ce5d9dd
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ bool uint256_to_decimal(const uint8_t *value, size_t value_len, char *out, size_
uint16_t n[16] = {0};
// Copy and right-align the number
memcpy((uint8_t *) n + INT256_LENGTH - value_len, value, INT256_LENGTH - value_len);
memcpy((uint8_t *) n + INT256_LENGTH - value_len, value, value_len);
// Special case when value is 0
if (allzeroes(n, INT256_LENGTH)) {