[dovecot-cvs] dovecot/src/lib-index/mbox istream-mbox.c,1.5,1.6

cras at procontrol.fi cras at procontrol.fi
Wed Oct 29 17:01:38 EET 2003


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv5464/lib-index/mbox

Modified Files:
	istream-mbox.c 
Log Message:
fix



Index: istream-mbox.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/istream-mbox.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- istream-mbox.c	29 Oct 2003 14:58:40 -0000	1.5
+++ istream-mbox.c	29 Oct 2003 15:01:36 -0000	1.6
@@ -78,10 +78,10 @@
 	mstream->istream.skip = 0;
 	mstream->istream.buffer = i_stream_get_data(mstream->input, &pos);
 
-	if (pos == mstream->istream.pos)
+	if (pos <= mstream->istream.pos)
 		ret = -1;
 	else {
-		ret = mstream->istream.pos - pos;
+		ret = pos - mstream->istream.pos;
                 mstream->istream.pos = pos;
 	}
 



More information about the dovecot-cvs mailing list