fs/fat/fs_fat32.c: Fixes issue when seeking to end of file where we move one too many clusters ahead due to < vs <= logic. This causes us to move past the last cluster in the file.
This commit is contained in:
parent
3e8bd2b5dc
commit
7ffe023766
@ -1159,7 +1159,7 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
ff->ff_currentcluster = cluster;
|
ff->ff_currentcluster = cluster;
|
||||||
if (position < clustersize)
|
if (position <= clustersize)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user