diff options
| author | Bernard Xiong <[email protected]> | 2013-07-06 06:06:57 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-07-06 06:06:57 -0700 |
| commit | 4f0cb887393a26455c87326bbe2713e2cb44a097 (patch) | |
| tree | 4072fe2f24093010c935f8970c87f986929e690f /components | |
| parent | b0c1f8a79b272c1ab61be637d1f2a84561c1bbc0 (diff) | |
| parent | 15b08b483aba831c9be200a3b8fcd1839e94a5a7 (diff) | |
Merge pull request #120 from prife/dfs-fix
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.c | 2 |
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) |
