https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84561
--- Comment #5 from Romain Geissler <romain.geissler at amadeus dot com> --- Hi, With the new release of gcc 9, I am seeing new occurences of this issue. I am trying to put a statement _string[len] = 0; after the strncpy to silence the warning, but still it triggers sometimes. Is the patch you posted back then still being discussed ? Cheers, Romain