mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
LibCore: Display the correct allocation size in the debug line
Someone named Karol forgot to update this line in #10205..
This commit is contained in:
parent
01370136ee
commit
2a461704c4
Notes:
sideshowbarker
2024-07-18 02:52:08 +09:00
Author: https://github.com/krkk
Commit: 2a461704c4
Pull-request: https://github.com/SerenityOS/serenity/pull/10415
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ ByteBuffer IODevice::read(size_t max_size)
|
||||||
auto size = min(max_size, m_buffered_data.size());
|
auto size = min(max_size, m_buffered_data.size());
|
||||||
auto buffer_result = ByteBuffer::create_uninitialized(size);
|
auto buffer_result = ByteBuffer::create_uninitialized(size);
|
||||||
if (!buffer_result.has_value()) {
|
if (!buffer_result.has_value()) {
|
||||||
dbgln("IODevice::read: Not enough memory to allocate a buffer of {} bytes", max_size);
|
dbgln("IODevice::read: Not enough memory to allocate a buffer of {} bytes", size);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
auto buffer = buffer_result.release_value();
|
auto buffer = buffer_result.release_value();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue