X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/44c01adf506b1087bff724dcb65b92a12b012836..1f4d55392f3d7e8b03c8c0cee62a38c58650458e:/attach.c?ds=inline diff --git a/attach.c b/attach.c index 106d68f..9e45cfd 100644 --- a/attach.c +++ b/attach.c @@ -169,7 +169,7 @@ int mutt_compose_attachment (BODY *a) /* Remove headers by copying out data to another file, then * copying the file back */ fseeko (fp, b->offset, 0); - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if ((tfp = safe_fopen (tempfile, "w")) == NULL) { mutt_perror _("Failure to open file to strip headers."); @@ -508,7 +508,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr, mutt_adv_mktemp (pagerfile, sizeof(pagerfile)); } else - mutt_mktemp (pagerfile); + mutt_mktemp (pagerfile, sizeof (pagerfile)); } if (use_mailcap) @@ -938,7 +938,7 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path, /* Ok, the difference between send and receive: * recv: BODY->filename is a suggested name, and Context|HEADER points - * to the attachment in mailbox which is encooded + * to the attachment in mailbox which is encoded * send: BODY->filename points to the un-encoded file which contains the * attachment */ @@ -1043,7 +1043,7 @@ int mutt_print_attachment (FILE *fp, BODY *a) ifp = NULL; fpout = NULL; - mutt_mktemp (newfile); + mutt_mktemp (newfile, sizeof (newfile)); if (mutt_decode_save_attachment (fp, a, newfile, M_PRINTING, 0) == 0) {