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.
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid = "(a)(#)calloc.c 5.5 (Berkeley) 5/17/90";
#endif /* LIBC_SCCS and not lint */
calloc (size_t num, size_t size)
register void *p;
size *= num;
if ((p = (void *) syscall (SYS_malloc, size)))
(void)syscall (SYS_free, p);