avoid another magic number
Some of the hardcoded +1 scattered about are likely invlet_gold or invlet_overflow, but I didn't hunt those down.
This commit is contained in:
@@ -683,7 +683,7 @@ int
|
||||
curses_character_dialog(const char **choices, const char *prompt)
|
||||
{
|
||||
int count, count2, ret, curletter;
|
||||
char used_letters[52];
|
||||
char used_letters[invlet_basic]; /* a..zA..Z */
|
||||
anything identifier;
|
||||
menu_item *selected = NULL;
|
||||
winid wid = curses_get_wid(NHW_MENU);
|
||||
|
||||
Reference in New Issue
Block a user