1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +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:
Karol Kosek 2021-10-09 22:47:29 +02:00 committed by Andreas Kling
parent 01370136ee
commit 2a461704c4

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();