From b3073bbf1e9388b772dc3eacb48f3bae245a849f Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 14 Mar 2017 16:29:58 +0300 Subject: [PATCH] Gui: TTY log fix --- rpcs3/Gui/ConLogFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);