changeset 1855:56cec02d8f8c HEAD

fix
author Timo Sirainen <tss@iki.fi>
date Wed, 29 Oct 2003 17:01:36 +0200
parents d4a2788f5fa6
children ef870406de53
files src/lib-index/mbox/istream-mbox.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mbox/istream-mbox.c	Wed Oct 29 16:54:03 2003 +0200
+++ b/src/lib-index/mbox/istream-mbox.c	Wed Oct 29 17:01:36 2003 +0200
@@ -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;
 	}