we use the proper method from QByteArray to forward the data received by
GETFileJob to the socket connected to teh fetch data CfApi callback
Close https://github.com/nextcloud/desktop/issues/6769
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
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;