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

Merge commit 'e577e87a2d80890190f14edc4a5caf70d7c566bf' into gingerbread-plus-aosp

* commit 'e577e87a2d80890190f14edc4a5caf70d7c566bf':
  Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream.
This commit is contained in:
Andreas Huber
2010-06-11 10:12:59 -07:00
committed by Android Git Automerger

View File

@@ -416,7 +416,7 @@ ssize_t NuCachedSource2::readInternal(off_t offset, void *data, size_t size) {
return mFinalStatus; return mFinalStatus;
} }
size_t avail = mCache->totalSize() - offset; size_t avail = mCache->totalSize() - delta;
mCache->copy(delta, data, avail); mCache->copy(delta, data, avail);
return avail; return avail;