X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=8e57a10884c010d37d915581cc7b6d35a7c2a77b;hp=28a6d8bc1435231956c2d110a3a382c581ee20a3;hb=ea912b20ba2b3b9dfdbbae758ad56263c9aa41b3;hpb=84336b1f31f4acefd0bf8500b8571c33669fd99f diff --git a/nntp/newsrc.c b/nntp/newsrc.c index 28a6d8b..8e57a10 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -87,7 +87,7 @@ static int nntp_parse_newsrc_line (NNTP_SERVER * news, char *line) nntp_add_to_list (news, data); } else - mem_free ((void **) &data->entries); + mem_free (&data->entries); data->rc = 1; data->entries = mem_calloc (x * 2, sizeof (NEWSRC_ENTRY)); @@ -944,7 +944,7 @@ int nntp_save_cache_group (CONTEXT * ctx) fputs (buf, f); if (h->env->references) mutt_write_references (h->env->references, f); - snprintf (buf, sizeof (buf), "\t%ld\t%d\tXref: %s\n", + snprintf (buf, sizeof (buf), "\t" OFF_T_FMT "\t%d\tXref: %s\n", h->content->length, h->lines, NONULL (h->env->xref)); if (fputs (buf, f) == EOF) { fclose (f);