From b480ae1a7895fce092aafc334c57a4e86d9419ad Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 17 Dec 2009 23:59:12 +0100 Subject: Fixing a potential issue with Buffers. --- lib/Buffer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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; } -- cgit v1.2.3