diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-10-08 12:28:30 +0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-10-08 12:28:30 +0800 |
commit | d430f37230a991aff004a71fb0e0a5bc2e71845d (patch) | |
tree | 2a887e9ff51e221c5bac1a098909fbe59899451a /imap/message.c | |
parent | f055ff5464366d51e6903552ab9b98fe021b92cb (diff) |
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.
Diffstat (limited to 'imap/message.c')
-rw-r--r-- | imap/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |