From 759b7dcd40be323d9578ac46186fcec7e049e2ed Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Thu, 14 Jul 2005 13:05:30 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ pkg.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5