summaryrefslogtreecommitdiff
path: root/cpukit/libmisc/rtems-fdt/rtems-fdt.c
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-10-12 18:50:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-15 19:14:52 +0200
commit1dbd1079a5344c3c67d6bf75b04319725b02ce62 (patch)
treedba41cc66a62ce18925f5ff75c64c88aaa4fb999 /cpukit/libmisc/rtems-fdt/rtems-fdt.c
parentb03c103dbd3093ebbcd808122be5b04aa2678f57 (diff)
shell/main_edit.c: Fix string truncation warning
Using strlcpy() instead of strncpy(): 1) Prevents the compiler warnings 2) Ensures, the string is NUL terminated. 3) Avoids that strncpy() unnecessary fills the unused part of the buffer with 0 bytes. (Note that realpath() also returns NULL if the file does not exist - that happens always if someone creates a new file with the editor of the shell.)
Diffstat (limited to 'cpukit/libmisc/rtems-fdt/rtems-fdt.c')
0 files changed, 0 insertions, 0 deletions