diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-06-21 14:56:21 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-06-21 14:56:21 +0000 |
commit | 6778ed99fe197a05bd109eab1ec047ddcba07ca4 (patch) | |
tree | 5e7e82eefaf3cd37cda63697ea78fff0c953d45b /src/buffer.cpp | |
parent | 97e228c38f312e455e50784146e8a76da7790f97 (diff) | |
download | libbu++-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.cpp | 2 |
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 | ||
154 | bool Bu::Buffer::isEos() | 154 | bool Bu::Buffer::isEos() |
155 | { | 155 | { |
156 | return iReadPos == (iReadBufFill-1) && rNext.isEos(); | 156 | return (iReadPos >= (iReadBufFill-1)) && (rNext.isEos()); |
157 | } | 157 | } |
158 | 158 | ||