]> granicus.if.org Git - mutt/commitdiff
Change message cache id to use SHORT_STRING.
authorKevin McCarthy <kevin@8t8.us>
Tue, 8 Oct 2019 04:28:30 +0000 (12:28 +0800)
committerKevin McCarthy <kevin@8t8.us>
Tue, 8 Oct 2019 04:28:30 +0000 (12:28 +0800)
Even that is too big, but it doesn't make make sense to use
_POSIX_PATH_MAX for the id string.

imap/message.c

index 314961c58f50fe3ab120e3ad21d07a3153d1edb0..fe148f97f1010d079c3476eac3fb6f23415a19f6 100644 (file)
@@ -1487,7 +1487,7 @@ static body_cache_t *msg_cache_open (IMAP_DATA *idata)
 
 static FILE* msg_cache_get (IMAP_DATA* idata, HEADER* h)
 {
-  char id[_POSIX_PATH_MAX];
+  char id[SHORT_STRING];
 
   if (!idata || !h)
     return NULL;
@@ -1499,7 +1499,7 @@ static FILE* msg_cache_get (IMAP_DATA* idata, HEADER* h)
 
 static FILE* msg_cache_put (IMAP_DATA* idata, HEADER* h)
 {
-  char id[_POSIX_PATH_MAX];
+  char id[SHORT_STRING];
 
   if (!idata || !h)
     return NULL;
@@ -1511,7 +1511,7 @@ static FILE* msg_cache_put (IMAP_DATA* idata, HEADER* h)
 
 static int msg_cache_commit (IMAP_DATA* idata, HEADER* h)
 {
-  char id[_POSIX_PATH_MAX];
+  char id[SHORT_STRING];
 
   if (!idata || !h)
     return -1;
@@ -1524,7 +1524,7 @@ static int msg_cache_commit (IMAP_DATA* idata, HEADER* h)
 
 int imap_cache_del (IMAP_DATA* idata, HEADER* h)
 {
-  char id[_POSIX_PATH_MAX];
+  char id[SHORT_STRING];
 
   if (!idata || !h)
     return -1;