mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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
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