]> err.no Git - pkg-config/commitdiff
2002-10-11 Havoc Pennington <hp@redhat.com>
authorArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:05:30 +0000 (13:05 +0000)
committerArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:05:30 +0000 (13:05 +0000)
Author: hp
Date: 2002-10-11 20:40:38 GMT
2002-10-11  Havoc Pennington  <hp@redhat.com>

* pkg.c (verify_package): fix to properly cast iter->data to char*
before doing pointer arithmetic, from David Robins

ChangeLog
pkg.c

index 8d0782c7b8f173ca1f1bfb62bef253a0e53af503..614fc958ba0e361ca6bbda95ecdaf1a780c2a8ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-11  Havoc Pennington  <hp@redhat.com>
+
+       * pkg.c (verify_package): fix to properly cast iter->data to char*
+       before doing pointer arithmetic, from David Robins
+
 2002-10-10  Havoc Pennington  <hp@redhat.com>
 
        * configure.in: 0.14
diff --git a/pkg.c b/pkg.c
index 66e1e8e6951a20df994bcf8f03ce7154d1c68481..a8fd1cbdc761a29f2270afd34529bbab4cebba6b 100644 (file)
--- a/pkg.c
+++ b/pkg.c
@@ -813,7 +813,8 @@ verify_package (Package *pkg)
          system_dir_iter = system_directories;
          while (system_dir_iter != NULL)
            {
-             if (strcmp (system_dir_iter->data, iter->data + offset) == 0)
+             if (strcmp (system_dir_iter->data,
+                          ((char*)iter->data) + offset) == 0)
                {
                  debug_spew ("Package %s has %s in Cflags\n",
                              pkg->name, (gchar *)iter->data);