From fd212978acfc1d88d1106b4e9fe2dda73c29774e Mon Sep 17 00:00:00 2001
From: ck <qt-info@nokia.com>
Date: Tue, 25 May 2010 16:08:52 +0200
Subject: [PATCH] Maemo: Fix trailing garbage output at end of remote process.

Task-number: QTCREATORBUG-1461 (part 2)
Written-by: Denis Mingulov
---
 src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
index 77777bceee9..caef4b19e3e 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
@@ -165,8 +165,8 @@ void MaemoSshRunner::handleRemoteOutput(const QByteArray &curOutput)
                 charsToEmitCount = -1;
             }
         } else {
-            firstCharToEmit = 0;
-            charsToEmitCount = endMarkerPos;
+            firstCharToEmit = m_potentialEndMarkerPrefix.count();
+            charsToEmitCount = endMarkerPos - firstCharToEmit;
         }
     } else {
         if (m_endMarkerCount == 0) {
-- 
GitLab