summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-09-27 18:12:27 -0700
committerKevin McCarthy <kevin@8t8.us>2019-09-27 18:12:27 -0700
commita736d4a41b8f5014ad16a9ee2ac1590601ea7977 (patch)
treecdb5e512c987114d4e02e628158ee4a1348a507e /imap
parent84c1b646d15eafe10a4653a7377567b4169d9229 (diff)
Convert hcache_open to use buffer pool.
Change the namer function and mutt_hcache_per_folder to operate on a buffer parameter.
Diffstat (limited to 'imap')
-rw-r--r--imap/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imap/util.c b/imap/util.c
index 315e77d8..0812bac3 100644
--- a/imap/util.c
+++ b/imap/util.c
@@ -130,9 +130,9 @@ static void imap_msn_index_to_uid_seqset (BUFFER *b, IMAP_DATA *idata)
}
}
-static int imap_hcache_namer (const char* path, char* dest, size_t dlen)
+static void imap_hcache_namer (const char *path, BUFFER *dest)
{
- return snprintf (dest, dlen, "%s.hcache", path);
+ mutt_buffer_printf (dest, "%s.hcache", path);
}
header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path)