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

Commit 8b89ccf0 authored by faqiang.zhu's avatar faqiang.zhu
Browse files

fix copy large file issue over MTP on 32bit device



change offset variable type from off_t to loff_t, then it won't overflow
when the offset value is larger than 2GB.

change the pwrite and pread function to be pwrite64 and pread64 so the
offset parameter won't overflow.

Change-Id: I45947479a59a4240fd708787384bcadee09d8947
Signed-off-by: default avatarfaqiang.zhu <faqiang.zhu@nxp.com>
parent 28d257e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment