]> granicus.if.org Git - neomutt/commitdiff
Increase ACCOUNT.pass field size. (closes #3921)
authorKevin McCarthy <kevin@8t8.us>
Sun, 5 Mar 2017 23:24:45 +0000 (15:24 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 6 Mar 2017 12:29:22 +0000 (12:29 +0000)
#3921 reported his password token used for Google XOAUTH2 is size 129.
The ACCOUNT structure currently uses a size 128 buffer.  Who knew a
password field would ever be bigger than that?

Since the ACCOUNT structure has no allocation/dellocation routines,
the easiest fix is to increase the size.  Bump the size up to 256.

account.h

index 653b7cc8146980ef3319752c5f025e0dc0b66588..c38b592ce70c6f19212d5203b547829bcae8a812 100644 (file)
--- a/account.h
+++ b/account.h
@@ -44,7 +44,7 @@ typedef struct
 {
   char user[64];
   char login[64];
-  char pass[128];
+  char pass[256];
   char host[128];
   unsigned short port;
   unsigned char type;