c53c1f0ab8
Fixes an APOP authentication vulnerability (CVE-2007-1558). ok bernd@
22 lines
880 B
Plaintext
22 lines
880 B
Plaintext
$OpenBSD: patch-mbox_c,v 1.4 2007/06/15 19:01:07 kili Exp $
|
|
--- mbox.c.orig Wed May 23 03:17:53 2007
|
|
+++ mbox.c Mon May 28 19:10:48 2007
|
|
@@ -288,7 +288,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
|
|
|
|
if (!ctx->quiet && ReadInc && ((count % ReadInc == 0) || count == 1))
|
|
mutt_message (_("Reading %s... %d (%d%%)"), ctx->path, count,
|
|
- ftell (ctx->fp) / (ctx->size / 100 + 1));
|
|
+ (int)(ftell (ctx->fp) / (ctx->size / 100 + 1)));
|
|
|
|
if (ctx->msgcount == ctx->hdrmax)
|
|
mx_alloc_memory (ctx);
|
|
@@ -796,7 +796,7 @@ int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint)
|
|
j++;
|
|
if (!ctx->quiet && WriteInc && ((i % WriteInc) == 0 || j == 1))
|
|
mutt_message (_("Writing messages... %d (%d%%)"), i,
|
|
- ftell (ctx->fp) / (ctx->size / 100 + 1));
|
|
+ (int)(ftell (ctx->fp) / (ctx->size / 100 + 1)));
|
|
|
|
if (ctx->magic == M_MMDF)
|
|
{
|