diff options
| author | Bernard Xiong <[email protected]> | 2020-03-13 18:09:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-13 18:09:43 +0800 |
| commit | d33d9dd9a695f9de3bfca25870d9c94493bff152 (patch) | |
| tree | 7cde17e638e977afe72848378bce6c2fe631f559 /components | |
| parent | 23d02c68c03c2a50a09309150425bc31e843c696 (diff) | |
| parent | 2822ec377d8c1b8259c42034fe60c9edc6674bbb (diff) | |
Merge pull request #3437 from Chinese66/patch-1
Update ry_sy.c
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/ymodem/ry_sy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ymodem/ry_sy.c b/components/utilities/ymodem/ry_sy.c index 4f4476e402..a87f6949db 100644 --- a/components/utilities/ymodem/ry_sy.c +++ b/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; |
