From ac0010940e626cb9193bb4ad0271f3820c7225ee Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Mon, 10 Apr 2006 21:04:54 +0000 Subject: [PATCH] Swap typo in order of ALIGN and dereferencing, fixing bug 6529. --- ChangeLog | 5 +++++ src/fcname.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b35be7a..f81c359 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Patrick Lam + * src/fcname.c (FcObjectUnserialize): + + Swap typo in order of ALIGN and dereferencing, fixing bug 6529. + 2006-04-10 Frederic Crozat reviewed by: plam diff --git a/src/fcname.c b/src/fcname.c index bc55d2c..2f6f4e6 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -373,8 +373,8 @@ void * FcObjectUnserialize (FcCache * metadata, void *block_ptr) { int new_biggest; - new_biggest = *(int *)block_ptr; block_ptr = ALIGN (block_ptr, int); + new_biggest = *(int *)block_ptr; block_ptr = (int *) block_ptr + 1; if (biggest_known_ntypes < new_biggest) {