OLD | NEW |
(Empty) | |
| 1 diff --git a/third_party/lcms2-2.6/src/cmstypes.c b/third_party/lcms2-2.6/src/cm
stypes.c |
| 2 index 9fe5e2a..feba387 100644 |
| 3 --- a/third_party/lcms2-2.6/src/cmstypes.c |
| 4 +++ b/third_party/lcms2-2.6/src/cmstypes.c |
| 5 @@ -2985,7 +2985,7 @@ void *Type_ColorantTable_Read(struct _cms_typehandler_stru
ct* self, cmsIOHANDLER |
| 6 for (i=0; i < Count; i++) { |
| 7 |
| 8 if (io ->Read(io, Name, 32, 1) != 1) goto Error; |
| 9 - Name[33] = 0; |
| 10 + Name[32] = 0; |
| 11 |
| 12 if (!_cmsReadUInt16Array(io, 3, PCS)) goto Error; |
| 13 |
| 14 @@ -3112,6 +3112,7 @@ void *Type_NamedColor_Read(struct _cms_typehandler_struct*
self, cmsIOHANDLER* i |
| 15 |
| 16 memset(Colorant, 0, sizeof(Colorant)); |
| 17 if (io -> Read(io, Root, 32, 1) != 1) return NULL; |
| 18 + Root[32] = 0; |
| 19 if (!_cmsReadUInt16Array(io, 3, PCS)) goto Error; |
| 20 if (!_cmsReadUInt16Array(io, nDeviceCoords, Colorant)) goto Error; |
| 21 |
OLD | NEW |