summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorprife <[email protected]>2013-07-06 16:41:10 +0800
committerprife <[email protected]>2013-07-06 16:41:10 +0800
commit15b08b483aba831c9be200a3b8fcd1839e94a5a7 (patch)
tree03fc67b49f0e1f7f806ef3f8aa6f97a7eb24884b /components
parent7c45dc02f7cb154cf3b7cc28db41707ad8a52053 (diff)
dfs: fix the variable definition bug in copy, found by ffgamelife from rt-thread.org
Diffstat (limited to 'components')
-rw-r--r--components/dfs/src/dfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c
index 05e76c96f7..441e322559 100644
--- a/components/dfs/src/dfs_file.c
+++ b/components/dfs/src/dfs_file.c
@@ -599,7 +599,7 @@ void copy(const char *src, const char *dst)
{
struct dfs_fd src_fd;
rt_uint8_t *block_ptr;
- rt_uint32_t read_bytes;
+ rt_int32_t read_bytes;
block_ptr = rt_malloc(BUF_SZ);
if (block_ptr == RT_NULL)