summaryrefslogtreecommitdiffstats
path: root/crypt.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 /crypt.c
parent8e7eaed5716babc4b0af3daac7b9a4fd033c1013 (diff)
Pass buffer size to mutt_mktemp()
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt.c b/crypt.c
index 60b594d0..0bd2f305 100644
--- a/crypt.c
+++ b/crypt.c
@@ -593,7 +593,7 @@ void crypt_extract_keys_from_messages (HEADER * h)
if (!WithCrypto)
return;
- mutt_mktemp (tempfname);
+ mutt_mktemp (tempfname, sizeof (tempfname));
if (!(fpout = safe_fopen (tempfname, "w")))
{
mutt_perror (tempfname);
@@ -844,7 +844,7 @@ int mutt_signed_handler (BODY *a, STATE *s)
if (sigcnt)
{
- mutt_mktemp (tempfile);
+ mutt_mktemp (tempfile, sizeof (tempfile));
if (crypt_write_signed (a, s, tempfile) == 0)
{
for (i = 0; i < sigcnt; i++)