]> granicus.if.org Git - neomutt/commitdiff
Increase user/pass field sizes in auth_login.
authorKevin McCarthy <kevin@8t8.us>
Sat, 22 Sep 2018 16:53:55 +0000 (09:53 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 25 Sep 2018 12:28:09 +0000 (13:28 +0100)
account.pass was previously increased to 256 in cd421c13.  Also, the
buf should be bigger than the user+pass+"LOGIN", so bump it up too.

imap/auth_login.c

index b380c7bb9a3b8e66e454c92ff0f304f87eab491f..8a8bcfb341b8aa69e51094c1937100e39fb893d3 100644 (file)
@@ -44,8 +44,8 @@
  */
 enum ImapAuthRes imap_auth_login(struct ImapMboxData *mdata, const char *method)
 {
-  char q_user[SHORT_STRING], q_pass[SHORT_STRING];
-  char buf[STRING];
+  char q_user[STRING], q_pass[STRING];
+  char buf[LONG_STRING];
   int rc;
 
   if (mutt_bit_isset(mdata->capabilities, LOGINDISABLED))