https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110884

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |97048

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note you are basically trying to use strcmp (a, b), so why not do that?

 _Bool
  equal_buffers (char *a, char *b)
  {
#ifdef FIXED_SIZE_BUFFERS
    return strncmp (a, b, SIZE) == 0;
#else
    return strcmp (a, b) == 0;
#endif
  }

?


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
[Bug 97048] [meta-bug] bogus/missing -Wstringop-overread warnings

Reply via email to