summaryrefslogtreecommitdiff
path: root/nuttx/configs/sama5d4-ek/knsh
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-17 12:24:02 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-17 12:24:02 -0600
commitd9cccec2ed5c71a759f6f2b7198554d6e98fd22c (patch)
tree15ae376a381961d38dc47a348f72d5743075ec40 /nuttx/configs/sama5d4-ek/knsh
parent2fa884cbcd0efab5e3f34df978c89415d341a510 (diff)
downloadpx4-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/sama5d4-ek/knsh')
0 files changed, 0 insertions, 0 deletions