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

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

am b165719e: am e577e87a: Fix a typo in NuCachedSource2 that would trigger an...

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

Merge commit 'b165719e'

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