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();