diff options
Diffstat (limited to 'src/cmsnamed.c')
-rw-r--r-- | src/cmsnamed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmsnamed.c b/src/cmsnamed.c index e42421d..d1a86b6 100644 --- a/src/cmsnamed.c +++ b/src/cmsnamed.c @@ -101,7 +101,7 @@ cmsBool GrowMLUtable(cmsMLU* mlu) AllocatedEntries = mlu ->AllocatedEntries * 2; // Check for overflow - if (AllocatedEntries < mlu ->AllocatedEntries) return FALSE; + if (AllocatedEntries / 2 != mlu ->AllocatedEntries) return FALSE; // Reallocate the memory NewPtr = (_cmsMLUentry*)_cmsRealloc(mlu ->ContextID, mlu ->Entries, AllocatedEntries*sizeof(_cmsMLUentry)); |