dfs: fix the variable definition bug in copy, found by ffgamelife from rt-thread.org

This commit is contained in:
prife 2013-07-06 16:41:10 +08:00
parent 7c45dc02f7
commit 15b08b483a
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ void copy(const char *src, const char *dst)
{ {
struct dfs_fd src_fd; struct dfs_fd src_fd;
rt_uint8_t *block_ptr; rt_uint8_t *block_ptr;
rt_uint32_t read_bytes; rt_int32_t read_bytes;
block_ptr = rt_malloc(BUF_SZ); block_ptr = rt_malloc(BUF_SZ);
if (block_ptr == RT_NULL) if (block_ptr == RT_NULL)