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 ([EMAIL PROTECTED]) 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user