Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2874:0f485075ba8f HEAD
crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 11 Nov 2004 17:25:50 +0200 |
parents | 72f28a4b964d |
children | 90f2ac2d16df |
files | src/lib-index/mail-index-sync-update.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c Tue Nov 09 18:54:31 2004 +0200 +++ b/src/lib-index/mail-index-sync-update.c Thu Nov 11 17:25:50 2004 +0200 @@ -499,7 +499,8 @@ offset += new_map->hdr->record_size; } - if (ext_id == size-1 && ext[ext_id].record_size != old_size) { + if (ext_id == size-1 && ext[ext_id].record_size != old_size && + old_records_count != 0) { /* we didn't fully write the last record */ buffer_append_zero(new_map->buffer, ext[ext_id].record_size - old_size);