Richard Quirk 665cdfabdc Warn when sizeof is used in strncmp ticket #2095
This checks for the case where the user thought sizeof(buf) gave the
size in bytes of 'buf' in code like the following:

  const char *buf = "Hello World";
  strncmp(buf, other, sizeof(buf));
2011-10-28 22:14:55 +02:00
..
2011-10-13 20:53:06 +02:00
2011-10-13 20:53:06 +02:00
2011-10-20 09:01:58 +02:00
2011-10-13 20:53:06 +02:00
2011-10-22 11:11:54 +02:00
2011-10-16 17:16:07 +02:00
2011-10-13 20:53:06 +02:00
2011-10-13 20:53:06 +02:00