diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-09-27 18:12:27 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-09-27 18:12:27 -0700 |
commit | a736d4a41b8f5014ad16a9ee2ac1590601ea7977 (patch) | |
tree | cdb5e512c987114d4e02e628158ee4a1348a507e /pop.c | |
parent | 84c1b646d15eafe10a4653a7377567b4169d9229 (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 'pop.c')
-rw-r--r-- | pop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,9 +228,9 @@ static int msg_cache_check (const char *id, body_cache_t *bcache, void *data) } #ifdef USE_HCACHE -static int pop_hcache_namer (const char *path, char *dest, size_t destlen) +static void pop_hcache_namer (const char *path, BUFFER *dest) { - return snprintf (dest, destlen, "%s." HC_FEXT, path); + mutt_buffer_printf (dest, "%s." HC_FEXT, path); } static header_cache_t *pop_hcache_open (POP_DATA *pop_data, const char *path) |