diff options
author | Alain Magloire <alainm@gnu.org> | 2001-04-24 19:33:25 +0000 |
---|---|---|
committer | Alain Magloire <alainm@gnu.org> | 2001-04-24 19:33:25 +0000 |
commit | 7401733c6eb6f7a342b7f3419444e689caa12974 (patch) | |
tree | 19a4f7ee513a12e3e7133e989b51a77b0f86418c | |
parent | 269cef5d4905e42ccfb174329154c78415ee20b7 (diff) | |
download | mailutils-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | mailbox/mbx_mbox.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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__, |