mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-04-05 12:30:41 +02:00
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:
parent
d638d9820d
commit
5c5ede8ed4
2 changed files with 7 additions and 2 deletions
|
|
@ -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
4
pkg.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue