X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnntp.c;h=15f7d786e426f966933c1c446b7f520d78e3be60;hb=3d8ec820b093cfe10a3738cfc8d8fedd813a73d7;hp=c597f6cc2273c13b2947dbe6f6fef5d3fe0eae46;hpb=b6aa72e3f430fcbdf9cfd797569fc7e3f78e9d67;p=apps%2Fmadmutt.git diff --git a/nntp/nntp.c b/nntp/nntp.c index c597f6c..15f7d78 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -941,7 +941,7 @@ int nntp_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) /* clear the previous entry */ unlink (cache->path); - free (cache->path); + mem_free (&cache->path); cache->index = ctx->hdrs[msgno]->index; mutt_mktemp (path); @@ -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,