From: Junio C Hamano Date: Thu, 03 May 2007 05:07:39 GMT Subject: Re: [PATCH] Make xstrndup common Message-ID: <7vvefa336s.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Daniel Barkalow writes: >> Why strncpy() not memcpy()? > > Left over from my previous attempt. memcpy() is better with the length > check. Ok, I was just sanity checking myself. Will apply with the change. Thanks.