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:
Karol Kosek 2021-10-09 22:47:29 +02:00 committed by Andreas Kling
parent 01370136ee
commit 2a461704c4
Notes: sideshowbarker 2024-07-18 02:52:08 +09:00

View file

@ -50,7 +50,7 @@ ByteBuffer IODevice::read(size_t max_size)
auto size = min(max_size, m_buffered_data.size());
auto buffer_result = ByteBuffer::create_uninitialized(size);
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 {};
}
auto buffer = buffer_result.release_value();