https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |msebor at gcc dot gnu.org
Status|WAITING |RESOLVED
Blocks| |88781
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning is by design. For strncat() which always appends a nul it's
documented to trigger if the call truncates the source string.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
[Bug 88781] [meta-bug] bogus/missing -Wstringop-truncation warnings