diff options
author | Marti Maria <info@littlecms.com> | 2013-05-02 15:42:59 +0200 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2013-05-02 15:42:59 +0200 |
commit | 16c0b5d39997bb25e3f6228874d83bfe1f25ee5b (patch) | |
tree | ea272508d3fde95a360cf1c03a8c9e81b045fa7e /utils | |
parent | 314c682c6d89b274054cc47cba324eb5e623b860 (diff) | |
download | lcms2-16c0b5d39997bb25e3f6228874d83bfe1f25ee5b.tar.gz |
Consolidated changes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/linkicc/linkicc.c | 2 | ||||
-rw-r--r-- | utils/psicc/psicc.c | 16 |
2 files changed, 11 insertions, 7 deletions
diff --git a/utils/linkicc/linkicc.c b/utils/linkicc/linkicc.c index b532ecb..b9b7bfb 100644 --- a/utils/linkicc/linkicc.c +++ b/utils/linkicc/linkicc.c @@ -346,7 +346,7 @@ int main(int argc, char *argv[]) // Create the color transform. Specify 0 for the format is safe as the transform // is intended to be used only for the devicelink. - hTransform = cmsCreateMultiprofileTransform(Profiles, nargs, 0, 0, Intent, dwFlags); + hTransform = cmsCreateMultiprofileTransform(Profiles, nargs, 0, 0, Intent, dwFlags|cmsFLAGS_NOOPTIMIZE); if (hTransform == NULL) { FatalError("Transform creation failed"); goto Cleanup; diff --git a/utils/psicc/psicc.c b/utils/psicc/psicc.c index b5a5b81..3716177 100644 --- a/utils/psicc/psicc.c +++ b/utils/psicc/psicc.c @@ -140,13 +140,17 @@ void GenerateCSA(void) n = cmsGetPostScriptCSA(0, hProfile, Intent, 0, NULL, 0); if (n == 0) return; - Buffer = (char*) malloc(n + 1); - cmsGetPostScriptCSA(0, hProfile, Intent, 0, Buffer, n); - Buffer[n] = 0; + Buffer = (char*) malloc(n + 1); + if (Buffer != NULL) { + + cmsGetPostScriptCSA(0, hProfile, Intent, 0, Buffer, n); + Buffer[n] = 0; + + fprintf(OutFile, "%s", Buffer); + + free(Buffer); + } - fprintf(OutFile, "%s", Buffer); - - free(Buffer); cmsCloseProfile(hProfile); } |