[PATCH] avoid GCC 10 warning -Wstringop-truncation

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 30 15:46:26 UTC 2020


On 30/07/2020 13:36, Aschref Ben-Thabet wrote:

> From: Aschref Ben Thabet<aschref.ben-thabet at embedded-brains.de>
>
> GCC 10 warns about an overlapping using strncpy.
> -> Replace some calls of strncpy with a memcpy to avoid this issue.
> ---
>   cpukit/libblock/src/bdpart-mount.c   | 4 ++--
>   testsuites/psxtests/psxndbm01/init.c | 2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)
The strncpy() warning fixes all need a case by case analysis and should 
have patches grouped by components. For example by test case or by 
libblock in this case.


More information about the devel mailing list