From: Christian Couder Date: Wed, 01 Aug 2007 04:11:14 GMT Subject: Re: [PATCH 1/4] Fix allocation of "int*" instead of "int". Message-ID: <200708010611.14171.chriscool@tuxfamily.org> In-Reply-To: <20070731195616.GA6329@sigill.intra.peff.net> Le mardi 31 juillet 2007 21:56, Jeff King a écrit : > 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)? That's ok for me too. Thanks, Christian.