Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmsnamed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmsnamed.c b/src/cmsnamed.c
index b58a66d..87f3936 100644
--- a/src/cmsnamed.c
+++ b/src/cmsnamed.c
@@ -544,7 +544,7 @@ cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID, cmsUIn
{
cmsNAMEDCOLORLIST* v;
- if (ColorantCount >= cmsMAXCHANNELS)
+ if (ColorantCount > cmsMAXCHANNELS)
return NULL;
v = (cmsNAMEDCOLORLIST*)_cmsMallocZero(ContextID, sizeof(cmsNAMEDCOLORLIST));