소스 검색

Merge pull request #3437 from Chinese66/patch-1

Update ry_sy.c
Bernard Xiong 5 년 전
부모
커밋
d33d9dd9a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/utilities/ymodem/ry_sy.c

+ 1 - 1
components/utilities/ymodem/ry_sy.c

@@ -40,7 +40,7 @@ static enum rym_code _rym_recv_begin(
         rt_kprintf("error creating file: %d\n", err);
         return RYM_CODE_CAN;
     }
-    cctx->flen = atoi((const char *)buf + rt_strnlen((const char *)buf, len - 1));
+    cctx->flen = atoi(1 + (const char *)buf + rt_strnlen((const char *)buf, len - 1));
     if (cctx->flen == 0)
         cctx->flen = -1;