Author: andersca
Date: 2002-09-26 07:09:38 GMT
2002-09-26 Anders Carlsson <andersca@gnu.org>
* pkg.c (verify_package): Use strncmp when checking for
the -I prefix.
+2002-09-26 Anders Carlsson <andersca@gnu.org>
+
+ * pkg.c (verify_package): Use strncmp when checking for
+ the -I prefix.
+
2002-09-19 Havoc Pennington <hp@pobox.com>
* configure.in: 0.13
/* we put things in canonical -I/usr/include (vs. -I /usr/include) format,
* but if someone changes it later we may as well be robust
*/
- if (((strcmp (iter->data, "-I") == 0) && (offset = 2))||
- ((strcmp (iter->data, "-I ") == 0) && (offset = 3)))
+ if (((strncmp (iter->data, "-I", 2) == 0) && (offset = 2))||
+ ((strncmp (iter->data, "-I ", 3) == 0) && (offset = 3)))
{
if (offset == 0)
{