diff options
Diffstat (limited to 'lib/Buffer.cc')
-rw-r--r-- | lib/Buffer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Buffer.cc b/lib/Buffer.cc index eb97e4d..2d615b5 100644 --- a/lib/Buffer.cc +++ b/lib/Buffer.cc @@ -75,6 +75,8 @@ ssize_t Buffer::read(void *buf, size_t count) throw (GeneralException) { return 0; } + got_eof = false; + if (buf) memcpy(buf, buffer + ptr, count); ptr += count; @@ -236,4 +238,5 @@ off_t Buffer::wtell() const { void Buffer::reset() { free(buffer); realsiz = bufsiz = ptr = wptr = 0; + got_eof = false; } |