$NetBSD: patch-af,v 1.1 2006/08/19 22:52:23 abs Exp $ --- chunk.c.orig 1999-02-18 11:14:59.000000000 +0000 +++ chunk.c @@ -122,7 +122,7 @@ void *ch_malloc(size_t numbytes, chunk_t ptr = ch->top; ch->free -= numbytes; - (char *)ch->top += numbytes; + ch->top = (char *)ch->top + numbytes; return ptr; }