diff --git a/libs/Common/Filters.h b/libs/Common/Filters.h index 55218cc59..e84f3547c 100644 --- a/libs/Common/Filters.h +++ b/libs/Common/Filters.h @@ -103,7 +103,7 @@ class BufferedOutputStream : public LayerOutputStream { if (this->s->write(buf, bufSize) == STREAM_ERROR) return STREAM_ERROR; pos = 0; - if (len >= bufSize) { + if (len < bufSize) { if (this->s->write(b, len) == STREAM_ERROR) return STREAM_ERROR; break;