소스 검색

Merge pull request #120 from prife/dfs-fix

dfs: fix the variable definition bug in copy, found by ffgamelife from rt-thread.org
Bernard Xiong 12 년 전
부모
커밋
4f0cb88739
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/dfs/src/dfs_file.c

+ 1 - 1
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)