X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnntp.c;h=d0fae27ad7503553c7b7eefa197c34b19d8b82fc;hp=c597f6cc2273c13b2947dbe6f6fef5d3fe0eae46;hb=c8ceef3ed6424dcb5a6ec835e7d8d9cc00595372;hpb=aa55c2d3e1bd7d40f866932b3833f338cf6c9d9b diff --git a/nntp/nntp.c b/nntp/nntp.c index c597f6c..d0fae27 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -981,8 +981,8 @@ int nntp_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) ctx->hdrs[msgno]->env = mutt_read_rfc822_header (msg->fp, ctx->hdrs[msgno], 0, 0); /* fix content length */ - fseek (msg->fp, 0, SEEK_END); - ctx->hdrs[msgno]->content->length = ftell (msg->fp) - + fseeko (msg->fp, 0, SEEK_END); + ctx->hdrs[msgno]->content->length = ftello (msg->fp) - ctx->hdrs[msgno]->content->offset; /* this is called in mutt before the open which fetches the message,