2002-09-26 Anders Carlsson <andersca@gnu.org>

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.
This commit is contained in:
Arch Librarian 2005-07-14 13:05:25 +00:00
parent d638d9820d
commit 5c5ede8ed4
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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

4
pkg.c
View file

@ -801,8 +801,8 @@ verify_package (Package *pkg)
/* 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)
{