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
1 changed files with 1 additions and 1 deletions
|
|
@ -1159,7 +1159,7 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence)
|
|||
*/
|
||||
|
||||
ff->ff_currentcluster = cluster;
|
||||
if (position < clustersize)
|
||||
if (position <= clustersize)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue