diff options
| author | bernard.xiong <[email protected]> | 2011-08-04 09:13:43 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-08-04 09:13:43 +0000 |
| commit | f6ce7bb0d933a42546ce9062ee593eec588bc9db (patch) | |
| tree | bf71ac97594b268b7e6183b9573f8d9576ad59cc /components/dfs | |
| parent | 9781537575c7755addb6959e0dbad764da16958a (diff) | |
fix romfs lseek issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1663 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/filesystems/romfs/dfs_romfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/romfs/dfs_romfs.c b/components/dfs/filesystems/romfs/dfs_romfs.c index ef825864ac..b5effaf81c 100644 --- a/components/dfs/filesystems/romfs/dfs_romfs.c +++ b/components/dfs/filesystems/romfs/dfs_romfs.c @@ -119,7 +119,7 @@ int dfs_romfs_read(struct dfs_fd* file, void *buf, rt_size_t count) int dfs_romfs_lseek(struct dfs_fd* file, rt_off_t offset)
{
- if (offset < file->size)
+ if (offset <= file->size)
{
file->pos = offset;
return file->pos;
|
