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

Commit b165719e authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

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

Merge commit 'e577e87a' into gingerbread-plus-aosp

* commit 'e577e87a':
  Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream.
parents dac5e001 e577e87a
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;