From 69213446495dd586b0b92ff8ad5bb4c4278ecf8a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 26 Apr 2000 01:26:29 +0000 Subject: only return TRUE if the parent is at eos AND the buffer has been exhausted * camel-stream-buffer.c (_eos): only return TRUE if the parent is at eos AND the buffer has been exhausted svn path=/trunk/; revision=2621 --- camel/ChangeLog | 3 +++ camel/camel-stream-buffer.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index ad51e0edd9..bd6efd3d04 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2000-04-25 Dan Winship + * camel-stream-buffer.c (_eos): only return TRUE if the parent is + at eos AND the buffer has been exhausted + * camel-mime-message.c: fix some incorrect macro usage that resulted in bogus casts diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c index cd394e3f81..4830758c9c 100644 --- a/camel/camel-stream-buffer.c +++ b/camel/camel-stream-buffer.c @@ -379,7 +379,7 @@ _eos (CamelStream *stream) { CamelStreamBuffer *sbf = CAMEL_STREAM_BUFFER (stream); - return camel_stream_eos(sbf->stream); + return camel_stream_eos(sbf->stream) && sbf->ptr == sbf->end; } static void -- cgit v1.2.3