From: Arch Librarian Date: Thu, 14 Jul 2005 13:05:30 +0000 (+0000) Subject: 2002-10-11 Havoc Pennington X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759b7dcd40be323d9578ac46186fcec7e049e2ed;p=pkg-config 2002-10-11 Havoc Pennington Author: hp Date: 2002-10-11 20:40:38 GMT 2002-10-11 Havoc Pennington * pkg.c (verify_package): fix to properly cast iter->data to char* before doing pointer arithmetic, from David Robins --- diff --git a/ChangeLog b/ChangeLog index 8d0782c..614fc95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-11 Havoc Pennington + + * pkg.c (verify_package): fix to properly cast iter->data to char* + before doing pointer arithmetic, from David Robins + 2002-10-10 Havoc Pennington * configure.in: 0.14 diff --git a/pkg.c b/pkg.c index 66e1e8e..a8fd1cb 100644 --- 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);