mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
parent
df14d11a11
commit
b2a849935b
Notes:
sideshowbarker
2024-07-18 07:06:37 +09:00
Author: https://github.com/guerinoni
Commit: b2a849935b
Pull-request: https://github.com/SerenityOS/serenity/pull/9337
Issue: https://github.com/SerenityOS/serenity/issues/9015
Reviewed-by: https://github.com/tomuta ✅
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ protected:
|
|||
if (message_size == 0 || bytes.size() - index - sizeof(uint32_t) < message_size)
|
||||
break;
|
||||
index += sizeof(message_size);
|
||||
auto remaining_bytes = ReadonlyBytes { bytes.data() + index, bytes.size() - index };
|
||||
auto remaining_bytes = ReadonlyBytes { bytes.data() + index, message_size };
|
||||
if (auto message = LocalEndpoint::decode_message(remaining_bytes, m_socket->fd())) {
|
||||
m_unprocessed_messages.append(message.release_nonnull());
|
||||
} else if (auto message = PeerEndpoint::decode_message(remaining_bytes, m_socket->fd())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue