diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-22 11:10:14 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-22 11:10:14 +0000 |
commit | 03a78e3bc1ba3453491c86ff7aa72c89aeeda228 (patch) | |
tree | 1aa3f12f5f3cce847629a62124ef3011a725f884 /mbox.c | |
parent | bb267742b02935a24e957a02f73a0290946a78e8 (diff) |
Avoid reading past actual headers when reopening mailboxes. From
Daniel Eisenbud.
Diffstat (limited to 'mbox.c')
-rw-r--r-- | mbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1107,7 +1107,7 @@ int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint) } if (!found) { - for (j = 0; j < i; j++) + for (j = 0; j < i && j < old_msgcount; j++) { if (old_hdrs[j] == NULL) continue; |