summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Magloire <alainm@gnu.org>2001-04-24 19:33:25 +0000
committerAlain Magloire <alainm@gnu.org>2001-04-24 19:33:25 +0000
commit7401733c6eb6f7a342b7f3419444e689caa12974 (patch)
tree19a4f7ee513a12e3e7133e989b51a77b0f86418c
parent269cef5d4905e42ccfb174329154c78415ee20b7 (diff)
downloadmailutils-7401733c6eb6f7a342b7f3419444e689caa12974.tar.gz
mailutils-7401733c6eb6f7a342b7f3419444e689caa12974.tar.bz2
i.e. it assumes that mbox_get_message() will place the pointer to
message into mum->message member. But mbox_get_message() relies on 1-based message numbers, whereas `mum' pointer is obtained using 0-based indexing:
-rw-r--r--ChangeLog7
-rw-r--r--mailbox/mbx_mbox.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2316714bd..ae527bfe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-23 Sergey Poznyakoff
+
+ * mailbox/mbx_mbox.c (mbx_expunge): It assumes that mbox_get_message()
+ will place the pointer to message into mum->message member. But
+ mbox_get_message() relies on 1-based message numbers, whereas `mum'
+ pointer is obtained using 0-based indexing:
+
2001-04-23 Alain Magloire
Sergey Poznyakoff noted: When the user's mailbox ha zeor size mmap
diff --git a/mailbox/mbx_mbox.c b/mailbox/mbx_mbox.c
index fcf6e1ca7..71178113c 100644
--- a/mailbox/mbx_mbox.c
+++ b/mailbox/mbx_mbox.c
@@ -700,7 +700,7 @@ mbox_expunge (mailbox_t mailbox)
if (mum->message == 0)
{
message_t msg;
- status = mbox_get_message (mailbox, i, &msg);
+ status = mbox_get_message (mailbox, i + 1, &msg);
if (status != 0)
{
mu_error ("Error expunge:%d: %s", __LINE__,

Return to:

Send suggestions and report system problems to the System administrator.