From 07c8c4963a616b06774eb6b80e39d7f863bd62ef Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 14 Feb 2015 12:40:32 +0100 Subject: [PATCH] use const char * const * for wordlist --- firmware/recovery.c | 4 ++-- trezor-crypto | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/recovery.c b/firmware/recovery.c index c53a42b845..48213e0d6e 100644 --- a/firmware/recovery.c +++ b/firmware/recovery.c @@ -39,7 +39,7 @@ static char words[24][12]; void next_word(void) { word_pos = word_order[word_index]; if (word_pos == 0) { - const char **wl = mnemonic_wordlist(); + const char * const *wl = mnemonic_wordlist(); strlcpy(fake_word, wl[random_uniform(2048)], sizeof(fake_word)); layoutDialogSwipe(DIALOG_ICON_INFO, NULL, NULL, NULL, "Please enter the word", NULL, fake_word, NULL, "on your computer", NULL); } else { @@ -119,7 +119,7 @@ void recovery_word(const char *word) } } else { // real word if (enforce_wordlist) { // check if word is valid - const char **wl = mnemonic_wordlist(); + const char * const *wl = mnemonic_wordlist(); bool found = false; while (*wl) { if (strcmp(word, *wl) == 0) { diff --git a/trezor-crypto b/trezor-crypto index f4fe7c9aa5..d814f58a3b 160000 --- a/trezor-crypto +++ b/trezor-crypto @@ -1 +1 @@ -Subproject commit f4fe7c9aa5e85ec3898ce07a5af5fc99bb8f5de4 +Subproject commit d814f58a3b027b154ae77bdf236a0cd08a421107