file end check must be against fdp->offset.

This commit is contained in:
nvt-se 2009-02-27 14:35:12 +00:00
parent a0226e2418
commit 90e8016906

View file

@ -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;