summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-10-19 14:54:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-20 07:01:29 +0200
commitdaeb0a1881b54f91ad525f0dd70da857d661d209 (patch)
tree65882deb1ab4344012ce56e1ef5c73ea66ac0a8c /ChangeLog
parentbsps: Fix rtems_interrupt_server_delete() (diff)
downloadrtems-daeb0a1881b54f91ad525f0dd70da857d661d209.tar.bz2
rtems-fdt / shell - Fix string truncation warning
The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument 267 | strncpy(path, name, namelen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ It turns out that the `strncpy()` nor the buffer `path` is needed when one uses `strncmp()` instead of `strcmp()`. This needs some change to the algorithm but has the advantage that `name` is never truncated to the size of the buffer `path`.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions