prasad-alatkar commented on a change in pull request #843:
URL: https://github.com/apache/mynewt-nimble/pull/843#discussion_r453654505



##########
File path: porting/nimble/src/os_mempool.c
##########
@@ -336,7 +336,7 @@ os_mempool_info_get_next(struct os_mempool *mp, struct 
os_mempool_info *omi)
     omi->omi_num_blocks = cur->mp_num_blocks;
     omi->omi_num_free = cur->mp_num_free;
     omi->omi_min_free = cur->mp_min_free;
-    strncpy(omi->omi_name, cur->name, sizeof(omi->omi_name));
+    strlcpy(omi->omi_name, cur->name, sizeof(omi->omi_name));

Review comment:
       @andrzej-kaczmarek Just pushed the changes using `strncpy` only after 
seeing travis build failures. Thanks :smiley: 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to