diff options
author | Marti Maria <info@littlecms.com> | 2011-03-11 16:14:51 +0100 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2011-03-11 16:14:51 +0100 |
commit | 314bc7201d340ab303b36a0ade2c37cf40b83a3b (patch) | |
tree | 4209c74140f53d4e94ec64c6fedb7728ae07ea32 /src/cmsio1.c | |
parent | 1647ce11d8194fa70da7b7b5c31673626be6ab53 (diff) | |
download | lcms2-314bc7201d340ab303b36a0ade2c37cf40b83a3b.tar.gz |
Fixing several minor issues
Diffstat (limited to 'src/cmsio1.c')
-rw-r--r-- | src/cmsio1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmsio1.c b/src/cmsio1.c index 7be30e7..b235333 100644 --- a/src/cmsio1.c +++ b/src/cmsio1.c @@ -629,7 +629,7 @@ cmsSEQ* _cmsReadProfileSequence(cmsHPROFILE hProfile) // Take profile sequence description first ProfileSeq = (cmsSEQ*) cmsReadTag(hProfile, cmsSigProfileSequenceDescTag); - + // Take profile sequence ID ProfileId = (cmsSEQ*) cmsReadTag(hProfile, cmsSigProfileSequenceIdTag); @@ -642,14 +642,14 @@ cmsSEQ* _cmsReadProfileSequence(cmsHPROFILE hProfile) if (ProfileSeq ->n != ProfileId ->n) return cmsDupProfileSequenceDescription(ProfileSeq); NewSeq = cmsDupProfileSequenceDescription(ProfileSeq); - + // Ok, proceed to the mixing if (NewSeq != NULL) { - for (i=0; i < ProfileSeq ->n; i++) { - - memmove(&NewSeq ->seq[i].ProfileID, &ProfileId ->seq[i].ProfileID, sizeof(cmsProfileID)); - NewSeq ->seq[i].Description = cmsMLUdup(ProfileId ->seq[i].Description); - } + for (i=0; i < ProfileSeq ->n; i++) { + + memmove(&NewSeq ->seq[i].ProfileID, &ProfileId ->seq[i].ProfileID, sizeof(cmsProfileID)); + NewSeq ->seq[i].Description = cmsMLUdup(ProfileId ->seq[i].Description); + } } return NewSeq; } |