You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/12/14 02:36:02 UTC
[GitHub] [nuttx] anchao commented on a diff in pull request #7870: mm/iob: add support of partial bytes clone
anchao commented on code in PR #7870:
URL: https://github.com/apache/nuttx/pull/7870#discussion_r1047951803
##########
mm/iob/iob_clone.c:
##########
@@ -137,26 +225,37 @@ int iob_clone(FAR struct iob_s *iob1, FAR struct iob_s *iob2, bool throttled)
* transferred?
*/
- if (offset2 >= CONFIG_IOB_BUFSIZE && iob1 != NULL)
+ if (offset2 >= (CONFIG_IOB_BUFSIZE -
+ iob2->io_offset) && iob1 != NULL)
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org