summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-07-18 00:54:20 +0000
committer[email protected] <[email protected]>2011-07-18 00:54:20 +0000
commit7f77bab21964163e29df8e9e7f75c15d61015179 (patch)
treea1a9db5910a9f42d0e3d07513cfc25d363b6ff18 /components
parent561eac938a6edcafb9548f7c259919952695b247 (diff)
update uffs filesystem read access error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1638 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/dfs/filesystems/uffs/dfs_uffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/uffs/dfs_uffs.c b/components/dfs/filesystems/uffs/dfs_uffs.c
index dea5eef01d..4c2a084a78 100644
--- a/components/dfs/filesystems/uffs/dfs_uffs.c
+++ b/components/dfs/filesystems/uffs/dfs_uffs.c
@@ -174,7 +174,7 @@ int dfs_uffs_read(struct dfs_fd* fd, void* buf, rt_size_t count)
RT_ASSERT(fd != RT_NULL);
/* update position */
- fp->pos = fd->pos;
+ fd->pos = fp->pos;
return uffs_ReadObject(fp, buf, count);
}