1
0
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:
Pavol Rusnak 2019-02-17 18:51:24 +01:00
parent fd46339f5c
commit 7492cf07fc
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -128,8 +128,8 @@ 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];
// "Path: m" / i '
static char address_str[7 + 8 * (1 + 10 + 1) + 1];
char *c = address_str + sizeof(address_str) - 1;
*c = 0; c--;