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:
Showing
2 changed files
with
8 additions
and
1 deletions
1 | 2001-04-23 Sergey Poznyakoff | ||
2 | |||
3 | * mailbox/mbx_mbox.c (mbx_expunge): It assumes that mbox_get_message() | ||
4 | will place the pointer to message into mum->message member. But | ||
5 | mbox_get_message() relies on 1-based message numbers, whereas `mum' | ||
6 | pointer is obtained using 0-based indexing: | ||
7 | |||
1 | 2001-04-23 Alain Magloire | 8 | 2001-04-23 Alain Magloire |
2 | 9 | ||
3 | Sergey Poznyakoff noted: When the user's mailbox ha zeor size mmap | 10 | Sergey Poznyakoff noted: When the user's mailbox ha zeor size mmap | ... | ... |
... | @@ -700,7 +700,7 @@ mbox_expunge (mailbox_t mailbox) | ... | @@ -700,7 +700,7 @@ mbox_expunge (mailbox_t mailbox) |
700 | if (mum->message == 0) | 700 | if (mum->message == 0) |
701 | { | 701 | { |
702 | message_t msg; | 702 | message_t msg; |
703 | status = mbox_get_message (mailbox, i, &msg); | 703 | status = mbox_get_message (mailbox, i + 1, &msg); |
704 | if (status != 0) | 704 | if (status != 0) |
705 | { | 705 | { |
706 | mu_error ("Error expunge:%d: %s", __LINE__, | 706 | mu_error ("Error expunge:%d: %s", __LINE__, | ... | ... |
-
Please register or sign in to post a comment