[PATCH] avoid GCC 10 warning -Wstringop-truncation

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 30 17:44:18 UTC 2020

On 30/07/2020 18:37, Joel Sherrill wrote:

> My recollection is that memcpy is undefined on overlapping memory regions.
> You should use memmove.
> A bigger question is why do these overlap and the code still thinks 
> the copy is
> needed.
strncpy() has the same problem with overlapping strings.

More information about the devel mailing list