summaryrefslogtreecommitdiffstats
path: root/pop.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-06-21 21:57:28 +0200
committerRocco Rutte <pdmef@gmx.net>2009-06-21 21:57:28 +0200
commit9dcf475e0d300bbfb90e66335c41c0035c2dcf37 (patch)
tree9b97eac65f005c49fe6981044923e500c608808e /pop.c
parent8e7eaed5716babc4b0af3daac7b9a4fd033c1013 (diff)
Pass buffer size to mutt_mktemp()
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 ec1af232..0c98942a 100644
--- a/pop.c
+++ b/pop.c
@@ -67,7 +67,7 @@ static int pop_read_header (POP_DATA *pop_data, HEADER *h)
char buf[LONG_STRING];
char tempfile[_POSIX_PATH_MAX];
- mutt_mktemp (tempfile);
+ mutt_mktemp (tempfile, sizeof (tempfile));
if (!(f = safe_fopen (tempfile, "w+")))
{
mutt_perror (tempfile);
@@ -568,7 +568,7 @@ int pop_fetch_message (MESSAGE* msg, CONTEXT* ctx, int msgno)
{
/* no */
bcache = 0;
- mutt_mktemp (path);
+ mutt_mktemp (path, sizeof (path));
if (!(msg->fp = safe_fopen (path, "w+")))
{
mutt_perror (path);