https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78913
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Well, I understand that char[x] can potentially be at most x-1 characters long. On the other hand, it's quite common case where one uses a temporary buffer (reasonable big) which is used by sprintf-family functions. Thus, considering that content of a string buffer is equal to it's possible size is strict for me and I would not display such warning. Thanks for understanding.