From 52e2e52db39e4ebacc8926437c86ddef8009d22a Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 15 Aug 2017 12:04:52 +0200
Subject: [PATCH] tweaks: allow enough space for the Y/N/A characters 
 [coverity scan]

---
 src/prompt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/prompt.c b/src/prompt.c
index ab2f4031..95cf0db3 100644
--- a/src/prompt.c
+++ b/src/prompt.c
@@ -709,7 +709,7 @@ int do_yesno_prompt(bool all, const char *msg)
 	functionptrtype func;
 
 	if (!ISSET(NO_HELP)) {
-	    char shortstr[3];
+	    char shortstr[MAXCHARLEN + 2];
 		/* Temporary string for (translated) " Y", " N" and " A". */
 
 	    if (COLS < 32)
-- 
GitLab