diff --git a/meson.build b/meson.build index 5d9b45ff3..7dbe2a0ea 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,9 @@ project('Little-CMS', 'c', - version: '2.12', + version: '2.13', meson_version: '>=0.48.0', ) -library_version = '2.0.12' +library_version = '2.0.13' cc = meson.get_compiler('c') @@ -59,13 +59,12 @@ endif if cc.has_function_attribute('visibility:hidden') cargs +='-DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1' -elif cc.get_id() == 'msvc' - cargs += '-DCMS_DLL_BUILD=1' endif if host_machine.system() == 'windows' win = import('windows') lcms2_srcs += win.compile_resources('Projects/VC2019/lcms2.rc') + cargs += '-DCMS_DLL_BUILD=1' endif liblcms2_lib = library('lcms2', lcms2_srcs, diff --git a/src/cmstypes.c b/src/cmstypes.c index 475858d45..9ff2b1130 100644 --- a/src/cmstypes.c +++ b/src/cmstypes.c @@ -3227,6 +3227,10 @@ cmsBool Type_NamedColor_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER cmsUInt16Number Colorant[cmsMAXCHANNELS]; char Root[cmsMAX_PATH]; + memset(Root, 0, sizeof(Root)); + memset(PCS, 0, sizeof(PCS)); + memset(Colorant, 0, sizeof(Colorant)); + if (!cmsNamedColorInfo(NamedColorList, i, Root, NULL, NULL, PCS, Colorant)) return 0; Root[32] = 0; if (!io ->Write(io, 32 , Root)) return FALSE; diff --git a/src/cmswtpnt.c b/src/cmswtpnt.c index ddd60b03e..8cfacf2f5 100644 --- a/src/cmswtpnt.c +++ b/src/cmswtpnt.c @@ -267,7 +267,7 @@ cmsBool _cmsAdaptMatrixToD50(cmsMAT3* r, const cmsCIExyY* SourceWhitePt) // aspects of the RGB to XYZ process, and assuming that the gamma correction // has transitive property in the transformation chain. // -// the algoritm: +// the algorithm: // // - First I build the absolute conversion matrix using // primaries in XYZ. This matrix is next inverted diff --git a/testbed/testcms2.c b/testbed/testcms2.c index 38209097e..1bd0dd8cc 100644 --- a/testbed/testcms2.c +++ b/testbed/testcms2.c @@ -8279,7 +8279,7 @@ double distance(const cmsUInt16Number* a, const cmsUInt16Number* b) /** * In 2.12, a report suggest that the built-in sRGB has roundtrip errors that makes color to move -* when roundripping again and again +* when roundtripping again and again */ static int Check_sRGB_Rountrips(void)