-
由 Sun He 提交于
We invented hashcpy() to keep the abstraction of "object name" behind it. Use it instead of calling memcpy() with hard-coded 20-byte length when moving object names between pieces of memory. Leave ppc/sha1.c as-is, because the function is about the SHA-1 hash algorithm whose output is and will always be 20 bytes. Helped-by: NMichael Haggerty <mhagger@alum.mit.edu> Helped-by: NDuy Nguyen <pclouds@gmail.com> Signed-off-by: NSun He <sunheehnus@gmail.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
50546b15