diff --git a/Libraries/LibCore/CIODevice.cpp b/Libraries/LibCore/CIODevice.cpp index b0f6148563..ea526c148d 100644 --- a/Libraries/LibCore/CIODevice.cpp +++ b/Libraries/LibCore/CIODevice.cpp @@ -124,7 +124,7 @@ ByteBuffer CIODevice::read_all() m_buffered_data.clear(); } - while (can_read_from_fd()) { + while (true) { char read_buffer[4096]; int nread = ::read(m_fd, read_buffer, sizeof(read_buffer)); if (nread < 0) {