projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
nntp
/
nntp.c
diff --git
a/nntp/nntp.c
b/nntp/nntp.c
index
c597f6c
..
15f7d78
100644
(file)
--- 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);
/* clear the previous entry */
unlink (cache->path);
-
free (
cache->path);
+
mem_free (&
cache->path);
cache->index = ctx->hdrs[msgno]->index;
mutt_mktemp (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 */
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) -
+ fseek
o
(msg->fp, 0, SEEK_END);
+ ctx->hdrs[msgno]->content->length = ftell
o
(msg->fp) -
ctx->hdrs[msgno]->content->offset;
/* this is called in mutt before the open which fetches the message,
ctx->hdrs[msgno]->content->offset;
/* this is called in mutt before the open which fetches the message,