From: Jeff King Date: Tue, 31 Jul 2007 19:56:16 GMT Subject: Re: [PATCH 1/4] Fix allocation of "int*" instead of "int". Message-ID: <20070731195616.GA6329@sigill.intra.peff.net> In-Reply-To: <20070731144829.ea83d43d.chriscool@tuxfamily.org> On Tue, Jul 31, 2007 at 02:48:29PM +0200, Christian Couder wrote: > - weights = xcalloc(on_list, sizeof(int*)); > + weights = xcalloc(on_list, sizeof(int)); How about the correct-by-definition sizeof(*weights)? -Peff