diff --git a/qdlt/qdltconnection.cpp b/qdlt/qdltconnection.cpp index 20277fab..c7661539 100644 --- a/qdlt/qdltconnection.cpp +++ b/qdlt/qdltconnection.cpp @@ -75,7 +75,8 @@ void QDltConnection::add(const QByteArray &bytes) { bytesReceived += bytes.size(); - data = dataView + bytes; + QByteArray dataViewArray = dataView; + data = dataViewArray + bytes; dataView.align(data); }