diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index a36a11ccd..417f6bedc 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -318,7 +318,7 @@ void GETFileJob::slotReadyRead() return; } - const qint64 writtenBytes = writeToDevice(QByteArray::fromRawData(buffer.constData(), readBytes)); + const qint64 writtenBytes = writeToDevice(buffer.left(readBytes)); if (writtenBytes != readBytes) { _errorString = _device->errorString(); _errorStatus = SyncFileItem::NormalError;