Skip to content

Commit

Permalink
🐛 fix buffer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
markparticle committed Sep 23, 2020
1 parent 1debbc0 commit 2ae01bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/buffer/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ssize_t Buffer::ReadFd(int fd, int* saveErrno) {
}
else {
writePos_ = buffer_.size();
Append(buff, len - writePos_);
Append(buff, len - writable);
}
return len;
}
Expand Down

0 comments on commit 2ae01bc

Please sign in to comment.