From 2a461704c40b1e35b5da4e5ae5581dd479db7e31 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 9 Oct 2021 22:47:29 +0200 Subject: [PATCH] LibCore: Display the correct allocation size in the debug line Someone named Karol forgot to update this line in #10205.. --- Userland/Libraries/LibCore/IODevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/IODevice.cpp b/Userland/Libraries/LibCore/IODevice.cpp index 6cb4c35975..6dbe69e69e 100644 --- a/Userland/Libraries/LibCore/IODevice.cpp +++ b/Userland/Libraries/LibCore/IODevice.cpp @@ -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();