]> granicus.if.org Git - neomutt/commitdiff
Increase prompt size to remove warning
authorKevin McCarthy <kevin@8t8.us>
Wed, 17 Apr 2019 23:07:05 +0000 (16:07 -0700)
committerRichard Russon <rich@flatcap.org>
Sun, 5 May 2019 00:00:38 +0000 (01:00 +0100)
Co-authored-by: Richard Russon <rich@flatcap.org>
commands.c
imap/browse.c
imap/imap.c
pager.c

index ec90993c44e1750534968e8ebf7f75e5e08498f9..b8149d7fb76eaa2a12a44a45457a1d23c5f603cc 100644 (file)
@@ -372,7 +372,7 @@ void ci_bounce_message(struct Mailbox *m, struct EmailList *el)
   if (!m || !el || STAILQ_EMPTY(el))
     return;
 
-  char prompt[128];
+  char prompt[129];
   char scratch[128];
   char buf[8192] = { 0 };
   struct Address *addr = NULL;
index 3d6d10aee9a00a1557cf773c360854c06740a118..2dd86dbe30a21edb1be6f3c5b8002ab9f6009852 100644 (file)
@@ -187,7 +187,7 @@ int imap_browse(const char *path, struct BrowserState *state)
   struct ImapAccountData *adata = NULL;
   struct ImapList list;
   struct ConnAccount conn_account;
-  char buf[PATH_MAX];
+  char buf[PATH_MAX + 1];
   char mbox[PATH_MAX];
   char munged_mbox[PATH_MAX];
   const char *list_cmd = NULL;
index be109ea4ff734587e8b89886e5f8abe051d5287a..62666f14f92a0b17b3433795152ac33fdfe6e3c1 100644 (file)
@@ -640,7 +640,7 @@ int imap_rename_mailbox(struct ImapAccountData *adata, char *oldname, const char
  */
 int imap_delete_mailbox(struct Mailbox *m, char *path)
 {
-  char buf[PATH_MAX];
+  char buf[PATH_MAX + 7];
   char mbox[PATH_MAX];
   struct Url *url = url_parse(path);
 
diff --git a/pager.c b/pager.c
index 3d66b121f7124ff430b10b76592bc4de2f1a720f..8622f43f1390db52419841aa9eb2618a9a3babc4 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -2234,7 +2234,7 @@ int mutt_pager(const char *banner, const char *fname, PagerFlags flags, struct P
 {
   static char searchbuf[256] = "";
   char buf[1024];
-  char helpstr[256];
+  char helpstr[1280];
   char tmphelp[256];
   int ch = 0, rc = -1;
   bool first = true;