List Info

Thread: Re: Pantone Huey and little cms.




Re: Pantone Huey and little cms.
user name
2007-09-27 14:48:19
Hello Marti,

a few lines before at cmsio1.c:1497
            wchar = (wchar_t*) _cmsMalloc(Len+2);
should probably read
            wchar = (wchar_t*)
_cmsMalloc(Len*sizeof(wchar_t)+2);

It keeps CinePaint running longer after.

kind regards
Kai-Uwe Behrmann
--
developing for colour management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org


Am 15.09.07, 21:16 +0200 schrieb Marti Maria:

> On 15/09/2007 20:54:36, Kai-Uwe Behrmann (ku.bgmx.de)
wrote:

> > 1504             i = wcstombs(Name, wchar,
size_max );
> > 1505             if (i == ((size_t) -1)) {
> > 1506                 // second try at least for
latin
> > 1507                 int i;
> > 1508                 char *tmp = (char*)wchar;
> > 1509                 for(i = 0; i < Len/2;
++i)
> > 1510                   Name[i] = tmp[i*2];
> > 1511                 //Name[0] = 0;    // Error
> > 1512             }

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )