Debugger: Fix bounds warnings in debug mode.
Technically these were accessing outside the container.
This commit is contained in:
parent
9d96e6579c
commit
4232ef59b4
2 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ void WebSocketServer::SendFlush() {
|
|||
|
||||
// Drain out as much of our buffer as possible.
|
||||
size_t totalPushed = 0;
|
||||
while (!outBuf_.empty()) {
|
||||
while (outBuf_.size() - totalPushed != 0) {
|
||||
size_t pushed = out_->PushAtMost((const char *)&outBuf_[totalPushed], outBuf_.size() - totalPushed);
|
||||
if (pushed == 0)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue