From 71c217efe9224a0923cf29f18dbe6f47eed2148e Mon Sep 17 00:00:00 2001 From: Insanemal Date: Mon, 7 Mar 2022 22:24:44 +1000 Subject: [PATCH] Change the truncate to -1 from -2 and remove the other part dealing with null terminators --- src/qt/qt_unixmanagerfilter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qt/qt_unixmanagerfilter.cpp b/src/qt/qt_unixmanagerfilter.cpp index d240e9d5f..9df6da5cb 100644 --- a/src/qt/qt_unixmanagerfilter.cpp +++ b/src/qt/qt_unixmanagerfilter.cpp @@ -31,8 +31,7 @@ void UnixManagerSocket::readyToRead() QByteArray line = readLine(); if (line.size()) { - line.resize(line.size() - 2); - line.push_back('\0'); + line.resize(line.size() - 1); if (line == "showsettings") { emit showsettings();