diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp index 64f7dc0b862..a31c06dec4e 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp @@ -166,8 +166,8 @@ void MaemoSshRunner::handleRemoteOutput() charsToEmitCount = -1; } } else { - firstCharToEmit = 0; - charsToEmitCount = endMarkerPos; + firstCharToEmit = m_potentialEndMarkerPrefix.count(); + charsToEmitCount = endMarkerPos - firstCharToEmit; } } else { if (m_endMarkerCount == 0) {