xiaoxiang781216 opened a new pull request #1047:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1047


   ## Summary
   ```
   Error: chrono_main.c:434:51: error: '%01ld' directive output may be 
truncated writing between 1 and 3 bytes into a region of size between 2 and 10 
[-Werror=format-truncation=]
     434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
         |                                                   ^~~~~
   chrono_main.c:434:38: note: directive argument in the range [-21, 21]
     434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
         |                                      ^~~~~~~~~~~~~~~~~~~
   chrono_main.c:434:11: note: 'snprintf' output between 8 and 18 bytes into a 
destination of size 16
     434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
         |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     435 |                    min, sec, (priv->ts_end.tv_nsec / 100000000));
         |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ```
   
   ## Impact
   Minor
   
   ## Testing
   Pass CI
   


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