diff --git a/rpcs3/Gui/ConLogFrame.cpp b/rpcs3/Gui/ConLogFrame.cpp index 1310ceda06..0ba46b436e 100644 --- a/rpcs3/Gui/ConLogFrame.cpp +++ b/rpcs3/Gui/ConLogFrame.cpp @@ -255,7 +255,7 @@ void LogFrame::UpdateUI() const auto start = steady_clock::now(); // Check TTY logs - while (const u64 size = std::min(sizeof(buf), m_tty_file.size() - m_tty_file.pos())) + while (const u64 size = std::min(buf.size(), m_tty_file.size() - m_tty_file.pos())) { const wxString& text = get_utf8(m_tty_file, size);