X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..81f7bd4085e25116cceb3a4dfb38c7c81bdf999b:/editmsg.c diff --git a/editmsg.c b/editmsg.c index e6c603f..153b139 100644 --- a/editmsg.c +++ b/editmsg.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1999-2000 Thomas Roessler + * Copyright (C) 1999-2002 Thomas Roessler * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General Public @@ -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);