mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +00:00
firmware: fix buffer size in address_n_str
This commit is contained in:
parent
fd46339f5c
commit
7492cf07fc
@ -129,7 +129,7 @@ static const char *address_n_str(const uint32_t *address_n, size_t address_n_cou
|
||||
}
|
||||
|
||||
// "Path: m" / i '
|
||||
static char address_str[7 + 8 * (1 + 9 + 1) + 1];
|
||||
static char address_str[7 + 8 * (1 + 10 + 1) + 1];
|
||||
char *c = address_str + sizeof(address_str) - 1;
|
||||
|
||||
*c = 0; c--;
|
||||
|
Loading…
Reference in New Issue
Block a user