forked from Imagelibrary/rtems
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`.
This directory contains for the "miscellaneous" library. Currently this library contains a number of useful support libraries: + Task Stack Overflow Checker + Workspace Consistency Checker + Task Execution Time Monitor + Period Statistics Monitor + Debug Monitor The following ideas have been mentioned for items which could go in this library, but this list is not all inclusive: + there are no outstanding suggestions. The intent of this library is to provide a home for useful utility routines which are dependent upon RTEMS. --joel 16 Sept 97