From: Kevin McCarthy Date: Tue, 8 Oct 2019 04:28:30 +0000 (+0800) Subject: Change message cache id to use SHORT_STRING. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d430f37230a991aff004a71fb0e0a5bc2e71845d;p=mutt Change message cache id to use SHORT_STRING. Even that is too big, but it doesn't make make sense to use _POSIX_PATH_MAX for the id string. --- diff --git a/imap/message.c b/imap/message.c index 314961c5..fe148f97 100644 --- a/imap/message.c +++ b/imap/message.c @@ -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;