Swap typo in order of ALIGN and dereferencing, fixing bug 6529.

This commit is contained in:
Patrick Lam 2006-04-10 21:04:54 +00:00
parent 3ea92166a0
commit ac0010940e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-07 Patrick Lam <plam@mit.edu>
* src/fcname.c (FcObjectUnserialize):
Swap typo in order of ALIGN and dereferencing, fixing bug 6529.
2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
reviewed by: plam

View File

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