[dovecot-cvs] dovecot/src/lib-index mail-index-view.c,1.56,1.57

tss at dovecot.org tss at dovecot.org
Fri Feb 2 10:30:21 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv21238

Modified Files:
	mail-index-view.c 
Log Message:
Another lookup_uid_range() seq2 bugfix/crashfix.



Index: mail-index-view.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-view.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- mail-index-view.c	25 Jan 2007 17:13:40 -0000	1.56
+++ mail-index-view.c	2 Feb 2007 10:30:15 -0000	1.57
@@ -378,7 +378,7 @@
 	else {
 		/* optimization - binary lookup only from right side: */
 		*last_seq_r = mail_index_bsearch_uid(view, last_uid,
-						     *first_seq_r, -1);
+						     *first_seq_r - 1, -1);
 	}
 	i_assert(*last_seq_r >= *first_seq_r);
 	return 0;



More information about the dovecot-cvs mailing list