mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
file end check must be against fdp->offset.
This commit is contained in:
parent
a0226e2418
commit
90e8016906
@ -985,8 +985,8 @@ cfs_seek(int fd, unsigned offset, int whence)
|
||||
return (cfs_offset_t)-1;
|
||||
}
|
||||
|
||||
if(fdp->file->end < offset) {
|
||||
fdp->file->end = offset;
|
||||
if(fdp->file->end < fdp->offset) {
|
||||
fdp->file->end = fdp->offset;
|
||||
}
|
||||
|
||||
return fdp->offset;
|
||||
|
Loading…
Reference in New Issue
Block a user