mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[ntcore] Fix off-by-one error in stream write (#5810)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user