X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbox.c;h=ebbd9ae8bb833a580c17a89b2df8f91a135a4a80;hp=15d58f7fefefee9db098fdfc91da54faf3876141;hb=ae93bc030d3794817980fc58a9cb20185047dd26;hpb=b17296ba049d71986028ac83f0b415a021d0691c diff --git a/mbox.c b/mbox.c index 15d58f7..ebbd9ae 100644 --- a/mbox.c +++ b/mbox.c @@ -42,10 +42,10 @@ /* struct used by mutt_sync_mailbox() to store new offsets */ struct m_update_t { short valid; - long hdr; - long body; + LOFF_T hdr; + LOFF_T body; long lines; - long length; + LOFF_T length; }; @@ -312,8 +312,8 @@ static int mbox_parse_mailbox (CONTEXT * ctx) if (fseeko (ctx->fp, tmploc, SEEK_SET) != 0 || fgets (buf, sizeof (buf), ctx->fp) == NULL || str_ncmp ("From ", buf, 5) != 0) { - debug_print (1, ("bad content-length in message %d (cl=%ld)\n", - curhdr->index, curhdr->content->length)); + debug_print (1, ("bad content-length in message %d (cl=" + OFF_T_FMT ")\n", curhdr->index, curhdr->content->length)); debug_print (1, ("LINE: %s\n", buf)); if (fseeko (ctx->fp, loc, SEEK_SET) != 0) { /* nope, return the previous position */ debug_print (1, ("fseeko() failed\n"));