Re: [PATCH] Make xstrndup common
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 3, 2007, 05:07 UTC
- Message-ID
- <7vvefa336s.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0705030100050.28708@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> 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.