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

Skip to content
Commit 0766ead6 authored by xiahong.bao's avatar xiahong.bao
Browse files

Fix logic error in SkipCutBuffer.cpp



When allocate a new larger buffer, as it is a ring buffer, if
mWriteHead < mReadHead, it means available data isn't continuous,
so need to call memcpy twice to move previous data to new buffer.

Signed-off-by: default avatarxiahong.bao <xiahong.bao@nxp.com>
Change-Id: Idcdb61c3bb777cf13fd8805f22c862ccc200dbd4
parent 0ebafd1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment