X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fmessage.c;h=64bf4346b190d364717bd955de78a4ad271652ce;hp=58fe61fcd111255cf399e176117ecb8257d18043;hb=adbac5bafc8f1ebe348b38342ace473f128d762a;hpb=411ed80b130b6b4c49c01cf53c7fa6e80d59103a diff --git a/imap/message.c b/imap/message.c index 58fe61f..64bf434 100644 --- a/imap/message.c +++ b/imap/message.c @@ -463,7 +463,7 @@ int imap_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) fgets (buf, sizeof (buf), msg->fp); } - h->content->length = ftell (msg->fp) - h->content->offset; + h->content->length = ftello (msg->fp) - h->content->offset; /* This needs to be done in case this is a multipart message */ #if defined(HAVE_PGP) || defined(HAVE_SMIME)