pkarashchenko commented on code in PR #7870:
URL: https://github.com/apache/nuttx/pull/7870#discussion_r1047626287


##########
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:
   ```suggestion
         if (offset2 >= (CONFIG_IOB_BUFSIZE - iob2->io_offset) &&
             iob1 != NULL)
   ```



-- 
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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to