summaryrefslogtreecommitdiffstats
path: root/pop.c
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 /pop.c
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 'pop.c')
-rw-r--r--pop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop.c b/pop.c
index 813942f7..db430a8d 100644
--- a/pop.c
+++ b/pop.c
@@ -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)