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
This commit is contained in:
Dan Winship
2000-04-26 01:26:29 +00:00
parent 390beacc98
commit 6921344649
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-04-25 Dan Winship <danw@helixcode.com>
* 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

View File

@ -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