1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

Fixed array sizes again. (#194)

This is the correct fix for 09917920ba
(how the code was meant to be written).
This commit is contained in:
Jochen Hoenicke 2017-07-18 13:08:27 +02:00 committed by Pavol Rusnak
parent cf04279774
commit 9efc5bc93c

View File

@ -64,8 +64,8 @@ bool compute_address(const CoinType *coin,
bool has_multisig, const MultisigRedeemScriptType *multisig, bool has_multisig, const MultisigRedeemScriptType *multisig,
char address[MAX_ADDR_SIZE]) { char address[MAX_ADDR_SIZE]) {
uint8_t raw[34]; uint8_t raw[MAX_ADDR_RAW_SIZE];
uint8_t digest[MAX_ADDR_RAW_SIZE]; uint8_t digest[32];
size_t prelen; size_t prelen;
if (has_multisig) { if (has_multisig) {