Skip to content

Commit

Permalink
common: fix incorrect comparison in BufferedOutputStream (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
dllu authored Jun 20, 2023
1 parent 017161e commit 2d95bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/Common/Filters.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class BufferedOutputStream : public LayerOutputStream<managed> {
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;
Expand Down

0 comments on commit 2d95bdc

Please # to comment.