pkarashchenko commented on a change in pull request #1045:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/1045#discussion_r820590282



##########
File path: examples/chrono/chrono_main.c
##########
@@ -393,7 +393,7 @@ int main(int argc, FAR char *argv[])
         {
           /* Copy the initial value */
 
-          strncpy(str, "00:00.0", 7);
+          strlcpy(str, "00:00.0", sizeof(str));

Review comment:
       so this code also generated a warning? very strange, because sizes seems 
to be well calculated.




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