/*
* Copyright (C) 1996,1997 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
+ * Copyright (C) 1999-2000,2002-4,2006 Thomas Roessler <roessler@does-not-exist.org>
* Copyright (C) 2001 Thomas Roessler <roessler@does-not-exist.org>
* Oliver Ehli <elmy@acm.org>
* Copyright (C) 2003 Werner Koch <wk@gnupg.org>
#include "mime.h"
#include "copy.h"
#include "mutt_crypt.h"
-#include "pgp.h"
#include <sys/wait.h>
#include <string.h>
fputc (c, fp);
}
- fclose (fp);
+ safe_fclose (&fp);
return 0;
}
if (!WithCrypto)
return;
- mutt_mktemp (tempfname);
+ mutt_mktemp (tempfname, sizeof (tempfname));
if (!(fpout = safe_fopen (tempfname, "w")))
{
mutt_perror (tempfname);
if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT &&
!crypt_valid_passphrase (Context->hdrs[Context->v2r[i]]->security))
{
- fclose (fpout);
+ safe_fclose (&fpout);
break;
}
}
}
- fclose (fpout);
+ safe_fclose (&fpout);
if (isendwin())
mutt_any_key_to_continue (NULL);
if (sigcnt)
{
- mutt_mktemp (tempfile);
+ mutt_mktemp (tempfile, sizeof (tempfile));
if (crypt_write_signed (a, s, tempfile) == 0)
{
for (i = 0; i < sigcnt; i++)