mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
Update hsmtool.c
This line is a cosmetic off-by-one error. There are 7 languages defined, but because counting starts at 0, the display is "Select [0-7]" when in fact only 0-6 are valid choices.
This commit is contained in:
parent
9450d46db1
commit
6edbc635cc
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ static void get_words(struct words **words) {
|
|||
for (size_t i = 0; i < ARRAY_SIZE(languages); i++) {
|
||||
printf(" %zu) %s (%s)\n", i, languages[i].name, languages[i].abbr);
|
||||
}
|
||||
printf("Select [0-%zu]: ", ARRAY_SIZE(languages));
|
||||
printf("Select [0-%zu]: ", ARRAY_SIZE(languages)-1);
|
||||
fflush(stdout);
|
||||
|
||||
char *selected = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue