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++)