X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..1f4d55392f3d7e8b03c8c0cee62a38c58650458e:/editmsg.c?ds=sidebyside diff --git a/editmsg.c b/editmsg.c index 85b75e3..153b139 100644 --- a/editmsg.c +++ b/editmsg.c @@ -64,7 +64,7 @@ static int edit_one_message (CONTEXT *ctx, HEADER *cur) struct stat sb; time_t mtime = 0; - mutt_mktemp (tmp); + mutt_mktemp (tmp, sizeof (tmp)); omagic = DefaultMagic; DefaultMagic = M_MBOX; @@ -191,7 +191,7 @@ static int edit_one_message (CONTEXT *ctx, HEADER *cur) mx_close_mailbox (&tmpctx, NULL); bail: - if (fp) fclose (fp); + if (fp) safe_fclose (&fp); if (rc >= 0) unlink (tmp);