summaryrefslogtreecommitdiff
path: root/src/buffer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-06-21 14:56:21 +0000
committerMike Buland <eichlan@xagasoft.com>2010-06-21 14:56:21 +0000
commit6778ed99fe197a05bd109eab1ec047ddcba07ca4 (patch)
tree5e7e82eefaf3cd37cda63697ea78fff0c953d45b /src/buffer.cpp
parent97e228c38f312e455e50784146e8a76da7790f97 (diff)
downloadlibbu++-6778ed99fe197a05bd109eab1ec047ddcba07ca4.tar.gz
libbu++-6778ed99fe197a05bd109eab1ec047ddcba07ca4.tar.bz2
libbu++-6778ed99fe197a05bd109eab1ec047ddcba07ca4.tar.xz
libbu++-6778ed99fe197a05bd109eab1ec047ddcba07ca4.zip
Fixed a bug in Bu::Buffer that resulted from a false negative on isEos if the
underlying stream was empty.
Diffstat (limited to 'src/buffer.cpp')
-rw-r--r--src/buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cpp b/src/buffer.cpp
index fa27116..234dc92 100644
--- a/src/buffer.cpp
+++ b/src/buffer.cpp
@@ -153,6 +153,6 @@ void Bu::Buffer::flush()
153 153
154bool Bu::Buffer::isEos() 154bool Bu::Buffer::isEos()
155{ 155{
156 return iReadPos == (iReadBufFill-1) && rNext.isEos(); 156 return (iReadPos >= (iReadBufFill-1)) && (rNext.isEos());
157} 157}
158 158