2002-10-11 Havoc Pennington <hp@redhat.com>

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
This commit is contained in:
Arch Librarian 2005-07-14 13:05:30 +00:00
parent faabbcd36d
commit 759b7dcd40
2 changed files with 7 additions and 1 deletions

View file

@ -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

3
pkg.c
View file

@ -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);