diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-17 12:24:02 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-17 12:24:02 -0600 |
commit | d9cccec2ed5c71a759f6f2b7198554d6e98fd22c (patch) | |
tree | 15ae376a381961d38dc47a348f72d5743075ec40 /nuttx/configs/spark | |
parent | 2fa884cbcd0efab5e3f34df978c89415d341a510 (diff) | |
download | px4-nuttx-d9cccec2ed5c71a759f6f2b7198554d6e98fd22c.tar.gz px4-nuttx-d9cccec2ed5c71a759f6f2b7198554d6e98fd22c.tar.bz2 px4-nuttx-d9cccec2ed5c71a759f6f2b7198554d6e98fd22c.zip |
strncpy will not copy the terminating \0 into the destination if the source is larger than the size of the destination. Ensure that the last byte is always zero and let strncpy only copy CONFIG_TASK_NAME_SIZE bytes. The issue of unterminated names can be observed in ps when creating a pthread while CONFIG_TASK_NAME_SIZE is set to 8.
Diffstat (limited to 'nuttx/configs/spark')
0 files changed, 0 insertions, 0 deletions