From: David S. Miller Date: Sat, 07 Jan 2006 08:29:04 GMT Subject: Re: [ANNOUNCE] GIT 1.0.7 Message-ID: <20060107.002904.87767885.davem@davemloft.net> In-Reply-To: <20060107.021614.94523887.yoshfuji@linux-ipv6.org> From: YOSHIFUJI Hideaki Date: Sat, 07 Jan 2006 02:16:14 -0600 (CST) > @@ -43,6 +43,7 @@ static void add_to_known_names(const cha > struct commit_name *name = xmalloc(sizeof(struct commit_name) + len); > > name->commit = commit; > + name->path = sizeof(*name); > name->prio = prio; > memcpy(name->path, path, len); > idx = names; Why are you assigning an integer to a pointer? :-) Probably you meant something like: struct commit_name *name = xmalloc(sizeof(struct commit_name) + len); ... name->path = xmalloc(len); ...