From: Johannes Schindelin Date: Fri, 27 Jun 2008 11:56:02 GMT Subject: Re: [PATCH 12/13] Build in merge Message-ID: In-Reply-To: <20080627010609.GJ29404@genesis.frugalware.org> Hi, On Fri, 27 Jun 2008, Miklos Vajna wrote: > diff --git a/builtin-merge.c b/builtin-merge.c > index cc04d01..77de9e8 100644 > --- a/builtin-merge.c > +++ b/builtin-merge.c > @@ -836,9 +836,12 @@ int cmd_merge(int argc, const char **argv, const char *prefix) > /* Again the most common case of merging one remote. */ > struct strbuf msg; > struct object *o; > + char hex[41]; > + > + memcpy(hex, find_unique_abbrev(head, DEFAULT_ABBREV), 41); Maybe strcpy(hex, find_unique_abbrev(head, DEFAULT_ABBREV)) would be more intuitive? Ciao, Dscho