tweaks: allow enough space for the Y/N/A characters [coverity scan]

master
Benno Schulenberg 2017-08-15 12:04:52 +02:00
parent 3f0e42c13b
commit 52e2e52db3
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ int do_yesno_prompt(bool all, const char *msg)
functionptrtype func; functionptrtype func;
if (!ISSET(NO_HELP)) { if (!ISSET(NO_HELP)) {
char shortstr[3]; char shortstr[MAXCHARLEN + 2];
/* Temporary string for (translated) " Y", " N" and " A". */ /* Temporary string for (translated) " Y", " N" and " A". */
if (COLS < 32) if (COLS < 32)