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) {