diff --git a/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp b/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp index e8ac9142b1..b08ab2d927 100644 --- a/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp +++ b/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp @@ -48,7 +48,7 @@ class WebSocketConnection::Stream final : public wpi::raw_ostream { }; void WebSocketConnection::Stream::write_impl(const char* data, size_t len) { - if (len > kAllocSize) { + if (len >= kAllocSize) { // only called by raw_ostream::write() when the buffer is empty and a large // thing is being written; called with a length that's a multiple of the // alloc size