Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e577e87a authored by Andreas Huber's avatar Andreas Huber
Browse files

Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream.

Change-Id: I963ad7074b830d553b67c8925efd5369d0b7a5b9
parent b8bb78f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ ssize_t NuCachedSource2::readInternal(off_t offset, void *data, size_t size) {
            return mFinalStatus;
        }

        size_t avail = mCache->totalSize() - offset;
        size_t avail = mCache->totalSize() - delta;
        mCache->copy(delta, data, avail);

        return avail;