diff --git a/src/prompt.c b/src/prompt.c
index ab2f4031aedd3aadf988f258138365cc750b2794..95cf0db3e8935f70545e28e7d8fbac30553ffe00 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)