From: Pierre Habouzit Date: Sun, 26 Nov 2006 16:19:39 +0000 (+0100) Subject: wibble. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=363a0a082dba5ca0865acdbf30e1806e0ecb60f6;p=apps%2Fmadmutt.git wibble. Signed-off-by: Pierre Habouzit --- diff --git a/attach.c b/attach.c index 54bfc73..d4b1c6f 100644 --- a/attach.c +++ b/attach.c @@ -445,13 +445,9 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, } if (use_pager) { - if (fp && !use_mailcap && a->filename) { - /* recv case */ - m_strcpy(pagerfile, sizeof(pagerfile), a->filename); - pagerfd = m_tempfd(pagerfile, sizeof(pagerfile), NONULL(Tempdir), pagerfile); - } else { - pagerfd = m_tempfd(pagerfile, sizeof(pagerfile), NONULL(Tempdir), NULL); - } + /* recv case */ + pagerfd = m_tempfd(pagerfile, sizeof(pagerfile), NONULL(Tempdir), + fp && !use_mailcap ? a->filename : NULL); } if (use_mailcap) {