On Fri, 2009-07-03 at 14:50 +0200, Bernd Roesch wrote: > Hello John-Mark > > On 02.07.09, you wrote: > > > > > I've tidied up the imagemap code and stopped it trying to call > > calloc(0, ...), which was probably your problem. > > Yes thanks, calloc 0 was the problem.your new file work and also when i > change the 0 to 1 in to places in old file work. > > there is calloc use from netbsd.and this fail on 0.but i am not sure what > unix specification say to this.if all Unix accept 0, i change AOS 68k lib > to be compatible.
It's perfectly acceptable for malloc/calloc to return NULL if asked for an allocation of zero bytes. J.
