[dovecot-cvs] dovecot/src/lib ibuffer.c,1.5,1.6

cras at procontrol.fi cras at procontrol.fi
Sun Oct 27 00:06:30 EEST 2002


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv5508

Modified Files:
	ibuffer.c 
Log Message:
i_buffer_set_read_limit() - don't fail if we don't know the file size.



Index: ibuffer.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ibuffer.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ibuffer.c	24 Oct 2002 22:04:49 -0000	1.5
+++ ibuffer.c	26 Oct 2002 20:06:27 -0000	1.6
@@ -87,7 +87,7 @@
 {
 	_IBuffer *_buf = buf->real_buffer;
 
-	i_assert(v_offset <= buf->v_size);
+	i_assert(buf->v_size == 0 || v_offset <= buf->v_size);
 
 	if (v_offset == 0)
 		buf->v_limit = buf->v_size;




More information about the dovecot-cvs mailing list