X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=d386400d56e0c3007b537e9d92bc12e6ef6f5204;hp=8310f6f93e146a0a4ffbbc660736a9f4a2b6725e;hb=a4831bf15088ad6a734dcd53d5fe66105ccdce47;hpb=284454918cc95058b026d057195eaa5279135c36 diff --git a/copy.c b/copy.c index 8310f6f..d386400 100644 --- a/copy.c +++ b/copy.c @@ -10,10 +10,10 @@ #include #include +#include #include "mutt.h" #include "handler.h" -#include "mx.h" #include "copy.h" #include #include @@ -616,12 +616,12 @@ _mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body, fseeko (fp, cur->offset, 0); if (mutt_copy_bytes (fp, fpout, cur->length) == -1) { - fclose (fp); + m_fclose(&fp); body_list_wipe(&cur); return (-1); } body_list_wipe(&cur); - fclose (fp); + m_fclose(&fp); } else { fseeko (fpin, body->offset, 0);