diff --git a/firmware/layout2.c b/firmware/layout2.c index 234d27b50b..993c05b1ab 100644 --- a/firmware/layout2.c +++ b/firmware/layout2.c @@ -374,7 +374,8 @@ void layoutConfirmOmni(const uint8_t *data, uint32_t size) { suffix = "USDT"; break; } - const uint64_t amount = *(const uint64_t *)(data + 12); + uint64_t amount; + memcpy(&amount, data + 12, sizeof(uint64_t)); bn_format_uint64(amount, NULL, suffix, BITCOIN_DIVISIBILITY, 0, false, str_out, sizeof(str_out)); } else {